Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How to make game logic independent of fps? [SOLVED]  (Read 2259 times)

0 Members and 1 Guest are viewing this topic.

Putarda

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
How to make game logic independent of fps? [SOLVED]
« on: May 21, 2017, 10:15:01 am »
In my game engine, the whole logic and draw is repeating in while loop. The problem is, if someone has big fps, his game logic will go faster than someone who has small fps. How can I make my game logic independent of fps? Thanks :).
« Last Edit: May 21, 2017, 03:58:44 pm by Putarda »

sjaustirni

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
Re: How to make game logic independent of fps?
« Reply #1 on: May 21, 2017, 03:15:30 pm »
Famous article about this topic: http://www.koonsolo.com/news/dewitters-gameloop/

Putarda

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Re: How to make game logic independent of fps? [SOLVED]
« Reply #2 on: May 21, 2017, 03:58:51 pm »
Thanks!