I'm in the process of creating a tetris clone (YAY!). I'm now at a point where I can move pieces around, but I begin to see performance issues with points where I reach the low 4/5 FPS and of course this can't be acceptable.
I'm pretty new to Löve, but I was wondering if I'm doing something wrong or not.
You can find the whole code here: https://github.com/napolux/tile4up
But the main stuff is here: https://github.com/napolux/tile4up/blob ... s/game.lua
I don't know if I'm organizing my code well or I am missing something... Any idea?
Performance issues
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Performance issues
https://love2d.org/wiki/love.graphics.newImageThis function can be slow if it is called repeatedly, such as from love.update or love.draw. If you need to use a specific resource often, create it once and store it somewhere it can be reused!
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest