|Project:||The Open Toolkit library|
The following attachments support the proposed interleaved scheduler as described in the forums.
The scheduler uses an interleaved pattern of sleep times to approximate sleep durations of greater precision then is support by the operating system.
The scheduler uses an adaptive logic to continuously tune the sleep interval pattern to match the target render frame rate and update frame rate.
Fiddler, do you want me to improve upon this to include things like Update/Render interval smoothing? bounding?
I've been trying to keep it simple so as not to over reach.
Although I do use this already internally, there are enhancements that I add to make it more consistent. As it stands, this scheduler assumes the consumer will do some pre-processing with the elapsed times to clean them up.