ICD2k3
09-17-2008, 04:51 PM
Hey guys, so basically I'm making a processor intensive webcam motion detection game. The motion detection is called using a timer at that runs every fraction of a second.
The problem: on slower computers the game slows way down... when I increase the interval wait time it fixes the issue (with slightly less responsive motion detection)... so it seems I need some way to create a dynamic timer that can change it's delay time based on a user's FPS... I already have a script that gets FPS (counter-productively it makes it even slower cause it uses an enterframe).
Any suggestions to this issue would be greatly greatly appreciated.
The problem: on slower computers the game slows way down... when I increase the interval wait time it fixes the issue (with slightly less responsive motion detection)... so it seems I need some way to create a dynamic timer that can change it's delay time based on a user's FPS... I already have a script that gets FPS (counter-productively it makes it even slower cause it uses an enterframe).
Any suggestions to this issue would be greatly greatly appreciated.