108 reputation
4
bio website codeisland.org
location Germany
age 22
visits member for 2 years, 6 months
seen Apr 15 at 12:31

I'm an enthusiastic, mostly self-trained, young software craftsman from Germany.

The programming language I'm currently most experienced with, is Java. I have a history in PHP and I'm currently learning C/C++ and C#

I prefer Linux with Gnome Shell as my work-OS and I favor Android over iOS.


Apr
7
awarded  Student
Jan
1
awarded  Scholar
Jan
1
accepted Implement an upper FPS limit in the gameloop
Jan
1
comment Implement an upper FPS limit in the gameloop
For sleep(0) I get CPU usage of 50% - 100%. For sleeping longer, I get 25% - 50%. Seems significant to me.
Jan
1
comment Implement an upper FPS limit in the gameloop
That makes sense. I'll test that out.
Dec
31
comment Implement an upper FPS limit in the gameloop
@Samaursa This doesn't answer my question, since mine is about implementing the max FPS. What you linked is just a discussion about if and why.
Dec
31
comment Implement an upper FPS limit in the gameloop
Is that "busy-wait" with the sleep()-function? Thread.sleep( (last_update + MIN_WAIT_TICKS) - System.currentTimeMillis() ); would also work. Otherwise, this seems to work fine.
Dec
31
asked Implement an upper FPS limit in the gameloop
Jun
25
awarded  Supporter
Jun
25
awarded  Autobiographer