Feb 9, 2013

I spent 6 hours working on my room transition code. I rewrote it from scratch, simplifying some things, making it easier to read. All in an attempt to get it to run at full speed or closer to full speed on my computers.

In the process, I noticed something. The rooms, when they're supposed to be drawn half and half on the screen for the majority of the transition, are being drawn 1 pixel too far to the left and 1 pixel too far up. When I used a draw_sprite or draw_rectangle function, it wouldn't cover up the old door and I couldn't figure out why. I still don't know why and it's an annoying bug that I am hoping someone at GMC will help me with.

But as for the slowdown, I did fix it. Six hours of my life wasted. Gone. The code was sound (if not a tad off in its figures). None of my computers can handle synchronization. I don't know what effect turning it off will have on my laptop, but I saw no effect on my desktop and, in fact, it made the entire game run slower. Once I turned it off, even walking around the room was much faster. Oddly, it makes transitions super slow. Since the pixel glitch is still there, it's unrelated to this, though.

No comments:

Post a Comment

©TheouAegis Productions™. Powered by Blogger.