Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
4
Newest
 Student
Impact
~1k people reached

  • 0 posts edited
  • 0 helpful flags
  • 16 votes cast
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