Luke Pierson
Member
Hello, I have an issue and not the slightest idea as to what might be causing it or what could fix it. My game runs just great, until I add in backgrounds. My goal is to have parallax scrolling, so multiple background layers are required.
I have not introduced any scrolling features to the backgrounds at all. I just made some art to test it out in game. I found that it was running at least half the speed it should be. I then tried to decrease the size of my backgrounds to 1,000x1,000. I figured that this should be easy for GM to handle. Booted the game up again and it was running smoothly, because I did not stretch the background or tile it etc. Essentially, the small background was only in one area of the room so that I could test the performance. When the player object got close to the small backgrounds, the game started to chug again.
My only guess as to why this may be happening is perhaps my camera object, which follows the player and acts similarly to a view? But it seems strange that this would happen. The only other time I've noticed the game having performance issues is while on a specific ladder where the entire view shows the wall that is being scaled, so that the only things visible are the wall, ladder, and player. This is somewhat similar to the performance issues I suffer when nearing backgrounds, as it seems to reach its worst point when the entire screen features the background.
Any ideas as to what might cause this?
I have not introduced any scrolling features to the backgrounds at all. I just made some art to test it out in game. I found that it was running at least half the speed it should be. I then tried to decrease the size of my backgrounds to 1,000x1,000. I figured that this should be easy for GM to handle. Booted the game up again and it was running smoothly, because I did not stretch the background or tile it etc. Essentially, the small background was only in one area of the room so that I could test the performance. When the player object got close to the small backgrounds, the game started to chug again.
My only guess as to why this may be happening is perhaps my camera object, which follows the player and acts similarly to a view? But it seems strange that this would happen. The only other time I've noticed the game having performance issues is while on a specific ladder where the entire view shows the wall that is being scaled, so that the only things visible are the wall, ladder, and player. This is somewhat similar to the performance issues I suffer when nearing backgrounds, as it seems to reach its worst point when the entire screen features the background.
Any ideas as to what might cause this?