NathanAuckett
Member
Hi all.
We are trying to optimize our game. We use allot of large graphical assets and because of this we have allot of texture swaps.
Reading this post: http://www.yoyogames.com/blog/23 , this is not ideal. So we made efforts to reduce our swap count. By using the largest texture page size, we can reduce the swaps from 30 to 13. Which is a huge improvement.... but apparently not.
Doing 30 texture swaps on smaller texture we get a stable 60fps. Doing 13 texture swaps on larger pages gives us between 45-60 fps. Which is obviously bad.
We are running this game on windows btw. (Apparently texture flushing doesn't work on windows)
The only way this makes sense is if pulling textures from bigger pages is more expensive then swapping to smaller pages more often and pulling them from there instead. I can't find any solid answer for that online though so here I am.
The other possible cause I've found is that on the smaller pages GM scaled down our backgrounds to fit them on. This isn't the case for the larger pages so maybe GM is struggling to draw the larger backgrounds?
Our biggest background is 2160x1600 with the game drawing about 6 backgrounds of that size per frame at minimum as they are used as parallax layers.
I'm basically just looking for more possible causes or some confirmation that what I think might be the cause is actually the reason.
Thanks in advance to anyone with some insight.
We are trying to optimize our game. We use allot of large graphical assets and because of this we have allot of texture swaps.
Reading this post: http://www.yoyogames.com/blog/23 , this is not ideal. So we made efforts to reduce our swap count. By using the largest texture page size, we can reduce the swaps from 30 to 13. Which is a huge improvement.... but apparently not.
Doing 30 texture swaps on smaller texture we get a stable 60fps. Doing 13 texture swaps on larger pages gives us between 45-60 fps. Which is obviously bad.
We are running this game on windows btw. (Apparently texture flushing doesn't work on windows)
The only way this makes sense is if pulling textures from bigger pages is more expensive then swapping to smaller pages more often and pulling them from there instead. I can't find any solid answer for that online though so here I am.
The other possible cause I've found is that on the smaller pages GM scaled down our backgrounds to fit them on. This isn't the case for the larger pages so maybe GM is struggling to draw the larger backgrounds?
Our biggest background is 2160x1600 with the game drawing about 6 backgrounds of that size per frame at minimum as they are used as parallax layers.
I'm basically just looking for more possible causes or some confirmation that what I think might be the cause is actually the reason.
Thanks in advance to anyone with some insight.