Posted 25 May 2014 - 11:07 PM
What methods or library calls might cause events to fall off the event list?
So far I know of two:
sleep()
read()
are there any other situation or library call that could potentially cause an issue with missing events? (This is for a stationary computer)
Usage scenario:
I've written a program that relies on several events happening per tick. I've found that some events seems to disappear from the queue if limited to happen every x seconds or so (via monitoring delta time, not using sleep())
In this particular case, I have an event called "walkto" and an event called "step_sound", walkto is dispatched 50 times for every step_sound. I've found that in such a scenario, I rarely get the "step_sound" events to show up, even though I can see them getting queued.
So far I know of two:
sleep()
read()
are there any other situation or library call that could potentially cause an issue with missing events? (This is for a stationary computer)
Usage scenario:
I've written a program that relies on several events happening per tick. I've found that some events seems to disappear from the queue if limited to happen every x seconds or so (via monitoring delta time, not using sleep())
In this particular case, I have an event called "walkto" and an event called "step_sound", walkto is dispatched 50 times for every step_sound. I've found that in such a scenario, I rarely get the "step_sound" events to show up, even though I can see them getting queued.
Edited on 25 May 2014 - 09:32 PM