Search found 4 matches

by Kreative
Tue Feb 16, 2016 11:04 pm
Forum: Support and Development
Topic: How to set different frames per second and updates per second and be able to change after loading?
Replies: 8
Views: 4941

Re: How to set different frames per second and updates per second and be able to change after loading?

If vsync is off (and you don't force it on löve via other means, like the nvidia control panel for those cards), then love.run's loop will execute as fast as it can (granted, with the sleep command still in it at the end), giving you around 1000 cycles per second to work with. That way, you can &qu...
by Kreative
Tue Feb 16, 2016 9:54 pm
Forum: Support and Development
Topic: How to set different frames per second and updates per second and be able to change after loading?
Replies: 8
Views: 4941

Re: How to set different frames per second and updates per second and be able to change after loading?

Are the functions love.update and love.draw limited to run every specific interval to produce a certain number of times each second? Are the updates and frames limited or unlimited? If they are unlimited I'll just use another way of limiting that I have written in Java because it's very efficient! O...
by Kreative
Tue Feb 16, 2016 7:19 pm
Forum: Support and Development
Topic: How to set different frames per second and updates per second and be able to change after loading?
Replies: 8
Views: 4941

Re: How to set different frames per second and updates per second and be able to change after loading?

The Source Engine also works this way. It's called "ticks." It keeps track of how many ticks should be done in the amount of time passed, and ticks until it catches up. It's probably a better solution than dt, you won't have things going through walls. http://greyminecraftcoder.blogspot.c...
by Kreative
Tue Feb 16, 2016 6:30 pm
Forum: Support and Development
Topic: How to set different frames per second and updates per second and be able to change after loading?
Replies: 8
Views: 4941

How to set different frames per second and updates per second and be able to change after loading?

Hello, Many games, with a best example I can think of being Minecraft, have a specific updates per second usually from 20 to 60 and frames per second unlimited or limited to a specific amount, but this value (only the fps) is also often allowed to be changed by the user during the time the game is b...