Coder Social home page Coder Social logo

love2d-gameloop's Introduction

love2d-gameloop

Times taken for the player to reach the end of the ruler. In other words, the player, moving at a constant speed of 10 pixels per second, took this much game time to cover a distance of 66 pixels:

.. vsync novsync & dynthrot novsync & stathrot novsync & simpdynthrot
.. 6.64569 6.63680 6.63416 6.6385
.. 6.64745 6.63504 6.63669 6.64532
.. 6.64496 6.64029 6.63644 6.64029
avg 6.64603 6.63504 6.63576 6.64137
diff 0 0.01099 0.01026 0.00466

This still needs more testing. I will expand on each table entry with explanations after I have tested them thoroughly in actual games. When we don't have vsync the novsync & simpdynthrot method works best and is what's implemented in src/engine/runtime.lua. The same method works when vsync is on, the throttling simply won't happen since the desired fps is not being exceeded.

  • Use v key to toggle vsync
  • Use r key to toggle slow rendering simulation
  • Use u key to toggle fast rendering simulation
  • Play with globals declared in src/main.lua

Resources:

love2d-gameloop's People

Contributors

nikaoto avatar

Stargazers

adn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.