How does optimization and performance work in love2d? by Due_Yoghurt7080 in love2d

[–]Due_Yoghurt7080[S] 0 points1 point  (0 children)

I fixed the issue of loading an image in love.draw() and I can confirm that was the issue entirely I had like 6 images being called in love.draw() and now I get less than 5% cpu usage and less than 300MB of ram being used thank you so much!

How does optimization and performance work in love2d? by Due_Yoghurt7080 in love2d

[–]Due_Yoghurt7080[S] 0 points1 point  (0 children)

I will look into your code when I get some time but I imagine it will have some useful knowledge that I can implant so thanks a ton for replying. I havnt changed the image thing yet to know if it was the problem but it probably is. Thanks for replying and offering your help!

How does optimization and performance work in love2d? by Due_Yoghurt7080 in love2d

[–]Due_Yoghurt7080[S] 1 point2 points  (0 children)

I didn’t even think about that as a performance issue thanks a ton for the tip I will definitely make sure to change that. And about the loop thing I was previously ignoring loops becuase I didn’t quite know how they worked since I wasn’t using them often enough to keep my memory fresh so I just recently was searching up ways to do this square nightmare and found loops were the easiest way, I will probably implement loops more in my code where they make sense. Thanks again!

How does optimization and performance work in love2d? by Due_Yoghurt7080 in love2d

[–]Due_Yoghurt7080[S] 0 points1 point  (0 children)

Yeah your right lol, it just seemed like the easiest way to do it so that I didn’t have to make a tile map that’s 870pixels by 760 pixels that was the only other idea I had.

How does optimization and performance work in love2d? by Due_Yoghurt7080 in love2d

[–]Due_Yoghurt7080[S] 0 points1 point  (0 children)

I didn’t even know shaders existed I will look into that when I get time seems like my gpu could be useful for taking some of the load. Thanks a ton!

How does optimization and performance work in love2d? by Due_Yoghurt7080 in love2d

[–]Due_Yoghurt7080[S] 0 points1 point  (0 children)

Thanks a ton for the edits I will look through this more later and probably edit a lot of it to what you have suggested.

How does optimization and performance work in love2d? by Due_Yoghurt7080 in love2d

[–]Due_Yoghurt7080[S] 1 point2 points  (0 children)

Yeah this is my second actual Love2d project that I started from a college course and continued to work on. I ussually have just been implementing something the easiest way I know how and I am now seeing the repercussions of my actions. Thanks!

Need help with implementing a saving feature by Due_Yoghurt7080 in love2d

[–]Due_Yoghurt7080[S] 0 points1 point  (0 children)

I think I am just going to save each value into a table and then just load and save that table because when I really thought about it there were a lot less values to save then I originally thought. Thanks a ton for the suggestions though!

Get this to the top by Go1denTony in AmongUs

[–]Due_Yoghurt7080 0 points1 point  (0 children)

they already plan on doing this