from the javadoc:
/**
* Synchronize the display to a capped frame rate. Note that we are being "smart" about the
* desired results in our implementation; we automatically subtract 1 from the desired framerate
* to prevent just missing the frame time if vsync is set.
* @param fps The desired frame rate, in frames per second
*/
Maybe my lack of sleep is playing parts now, but shouldn’t it automatically add 1 to the desired framerate? It seems to me that if you subtract 1 from the framerate, it will sleep a little bit too long, resulting in missing the frame for sure when vsync is set, no?
EDIT:
I also have one little request (RFE) for these sync methods.
Could they return a boolean which indicates wether or not the sync method actually had to sleep/yield, in other words wether or not the desired frame rate was possible to achieve? Can be handy to implement auto frame skipping…