- Added stuff, program is now running slower for... no reason
- 20 Feb 2015 10:34:09 pm
- Last edited by M. I. Wright on 20 Feb 2015 10:39:39 pm; edited 1 time in total
I made/am making a platformer just for fun- it was working perfectly fine until yesterday when I decided to add some stuff to it. As the title says, it's now running a lot slower (specifically when moving left and right) and I'm not sure why.
Looking at the differences (it's a really large image, so I'll avoid embedding it), there are basically none in the parts where it defines left and right movement- in fact, the only differences I can see are that the game loop is 5 lines longer and the setup for the level is 21 lines longer.
So is the reason it's running slower that the file is larger? Because that would suck (I was planning to add extra levels :/). If that is the case, though, could somebody give me pointers on how I could make it smaller? (File download is at the bottom of this post) and of course if that isn't the cause of it running slower, I'd appreciate if somebody could find my error(s) for me (I've only been coding for about a week haha).
I put the files on Mega in an 8xg file here: https://mega.co.nz/#!yJwGWRBK!6Fcf7oe2EKPzWcbl61PJ90Bqgb--Dsop2kYauJadufE
(hyperlink wasn't working for some reason)
MOVE3.8xp is the last backup I have before it got slow, and MOVE31.8xp is the newer (slow) one.
thanks
Looking at the differences (it's a really large image, so I'll avoid embedding it), there are basically none in the parts where it defines left and right movement- in fact, the only differences I can see are that the game loop is 5 lines longer and the setup for the level is 21 lines longer.
So is the reason it's running slower that the file is larger? Because that would suck (I was planning to add extra levels :/). If that is the case, though, could somebody give me pointers on how I could make it smaller? (File download is at the bottom of this post) and of course if that isn't the cause of it running slower, I'd appreciate if somebody could find my error(s) for me (I've only been coding for about a week haha).
I put the files on Mega in an 8xg file here: https://mega.co.nz/#!yJwGWRBK!6Fcf7oe2EKPzWcbl61PJ90Bqgb--Dsop2kYauJadufE
(hyperlink wasn't working for some reason)
MOVE3.8xp is the last backup I have before it got slow, and MOVE31.8xp is the newer (slow) one.
thanks