Psi

Psi

45M Downloads

World Time behaves erratically. 2x tick rate while in leggings.

KirinDave opened this issue ยท 6 comments

commented

The World Time parameter seems to have some very strange behavior. In a circle cast bullet, it seems to fire quite slowly compared to the world ticks. This may be intended.

However, in the leggings it appears to fire twice per every tick. This is trivially to reproduce by placing it in a debug context and then watching the output when placed in leggings. I see 2x of every number, and sometimes I skip a number.

This is very surprising, as the leggings imply they will fire the spell once per every tick. I would expect to see one console output entry per tick with a monotonically increasing number.

commented

can't reproduce.

commented

Loopcasts and circles produce the expected results (casting every 5 ticks) and leggings increase by 1 every print, no skips or repeats.

commented

Try adding a mod 10? That's my trivial reproduction. I refuse to believe that is an outcome of slow computation. The code for the modulo operator doesn't look like it should be that slow. If it is, something strange is happening.

commented

@KirinDave can you provide code for spell you are using to test it? That would help.

commented

what the hell...
screen shot 2016-03-12 at 10 37 12 pm

commented

So, with mod 10, something... changes. how damned annoying.

Should the spell context contain the worldtime, and update it with the delay?