View Single Post
Old 09-7-2016, 10:58 PM   #77
PolygonEater
FFR Player
 
Join Date: Jul 2011
Posts: 67
Default Re: hello allow me to introduce to u my Wife

Quote:
Originally Posted by shakesoda View Post
p.s. high framerates are cool but things like that 1ms thread sleep do exist for a reason (taking all resources makes everything else on the system lag), if you need it disabled I'd accept a PR for a preference.
I removed the 1ms sleep because sleep is not deterministic and should never be used in any application where you want it to resume and complete at an accurate interval. Sleep is fine for things like say, the input thread waiting for a device, but not for the main gameplay thread. If there is a way to implement this deterministicly I am interested to hear it, I could very well be missing something.

That being said, the purpose of said sleep would be for old machines with single/dual cores where saturating the hardware with Stepmania is a real possibility. For the GPU at least, I am adding a deterministic frame limiter via a busy loop so people with weaker GPUs can avoid the high load if they like.

PolygonEater is offline   Reply With Quote