115 reputation
4
bio website codeisland.org
location Germany
age 22
visits member for 2 years, 9 months
seen Mar 24 at 19:42

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.


Dec
23
accepted Restricting character movement to “rails”
Dec
23
comment Restricting character movement to “rails”
@MatthewPigram new levels aren't the issue, there will be only the original level. That said, I think I'll go with this approach.
Dec
23
comment Restricting character movement to “rails”
What do you mean by "wrap"?
Dec
22
comment Restricting character movement to “rails”
This would have been my fallback option, it's how I implemented it before. I thought there might be a "nicer" way to do it.
Dec
22
comment Restricting character movement to “rails”
That sounds good. Do you know the "standard term" for this?
Dec
22
asked Restricting character movement to “rails”
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