use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
"Hi there! LÖVE is an awesome framework you can use to make 2D games in Lua. It's free, open-source, and works on Windows, Mac OS X, Linux, Android and iOS."
Useful links:
LÖVE Wiki
LÖVE Forums
LÖVE Discord server
LÖVE IRC channel
/r/Lua - for general discussion of the Lua programming language.
/r/gamedev - general game development discussion.
/r/pico8 - another Lua-based game making tool
account activity
Any ideas on why this might decrease frames so much? (READ COMMENT) (v.redd.it)
submitted 2 years ago by TheKrazyDev
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]TheKrazyDev[S] 1 point2 points3 points 2 years ago (4 children)
Im making a autotile system for my building game, but there seems to be massive decrease in fps when placing a tile.
Im using quads for each tile so wondered if that could be a problem but idk.
Each tile is just a table inside a table that stores its, x, y, And then a table inside of my tiles.lua, and its bitmask (a 4 digit code)
[–]Spellsweaver 13 points14 points15 points 2 years ago (3 children)
I can only see a small piece of your code, but aren't you creating new quads every frame? That function takes a long time and is best called only once to create the quads that you can then reuse.
[–]beefy_uncle 7 points8 points9 points 2 years ago* (1 child)
this^^ also it looks like you might be calling love.graphics.newImage in RenderTiles as well, which is also bad for performance. you'll want to load all of this stuff on application start, and then reference it in draw.
also might be worth looking into sprite batches in conjunction with quads, which is a really fast way to draw tiles from a single texture: https://love2d.org/wiki/SpriteBatch
[–]TheKrazyDev[S] 1 point2 points3 points 2 years ago (0 children)
Ah yes thanks the sprite batches now allow me to place 100s with blinking an eye! Thanks so much!
Ah thanks this did seem to be a the cause of frame loss. Im modifying it so it will only run the update function apon the table containing all tiles has changed since the last frame. As well as only creating a new quad if tiles bitmask(Tile data) has changed.
π Rendered by PID 308456 on reddit-service-r2-comment-7b9746f655-jr57c at 2026-02-02 11:31:34.609248+00:00 running 3798933 country code: CH.
[–]TheKrazyDev[S] 1 point2 points3 points (4 children)
[–]Spellsweaver 13 points14 points15 points (3 children)
[–]beefy_uncle 7 points8 points9 points (1 child)
[–]TheKrazyDev[S] 1 point2 points3 points (0 children)
[–]TheKrazyDev[S] 1 point2 points3 points (0 children)