Help with FPS capped at 20 for Love2D.
Posted: Sat Sep 22, 2018 8:21 am
Originally, I noticed the issue with the pong game from the first lecture of GD50, where the FPS is capped at 20FPS.
I tried creating a main.lua file with only code to render the FPS, and the result is also 20. Love.exe is set to High Performance in the Switchable graphics.
I'm using Love 11.1, the latest version, and I really don't know what to do.
Here's the main.lua for the FPS renderer:
I tried creating a main.lua file with only code to render the FPS, and the result is also 20. Love.exe is set to High Performance in the Switchable graphics.
I'm using Love 11.1, the latest version, and I really don't know what to do.
Here's the main.lua for the FPS renderer:
Code: Select all
function love.draw()
love.graphics.clear(0,0,0,1)
love.graphics.setColor(1,1,1,1)
love.graphics.print(tostring(love.timer.getFPS()),0,0)
end