Massive performance difference between running in terminal and .love

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
SpootySalmon
Prole
Posts: 2
Joined: Fri Mar 02, 2018 3:01 am

Massive performance difference between running in terminal and .love

Post by SpootySalmon »

I know my code is probably abhorrent, but still the difference is surprising to me for such a simple game. The goal is to get the key while avoiding enemies, and then get to the door to proceed to the next level. You will also die if you take too many steps. If I run it from the terminal it's perfectly fine, but if I run it from the .love file when you get to the door the game will hang for awhile before proceeding. Does anyone have an idea for why this might be?
Attachments
dungeon.love
(4.47 MiB) Downloaded 93 times
User avatar
pgimeno
Party member
Posts: 3656
Joined: Sun Oct 18, 2015 2:58 pm

Re: Massive performance difference between running in terminal and .love

Post by pgimeno »

Hi, welcome to the forums!

You're using LZMA for compression and it's a solid archive. That's slow. Try with regular deflate. In fact I'm surprised Löve accepts LZMA.
User avatar
SpootySalmon
Prole
Posts: 2
Joined: Fri Mar 02, 2018 3:01 am

Re: Massive performance difference between running in terminal and .love

Post by SpootySalmon »

Ok, that solved it. Thanks a lot, man. I'm relieved it was such a simple problem.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 7 guests