I created a topdown game and launched it on my Android device. I had a fps of 30 when my full view was covered by a large 2048 base map texture. But when I set the basemap to a higher value (so I could see the hd textures) my fps dropped down to 20. How is such a 10fps drop possible?
I tried to remove all my terrain textures. So my whole terrain was white. The same happened: by disabling the basemap my fps dropped to 20 even when there was no texture visible. With enabling the basemap to a 0 zero distance my fps was 30 again.
How to make my topdown terrain work smooth with normal quality textures?
It’s switching between two different shaders. When it’s showing the basemap, it’s just a simple diffuse shader. When it’s showing the splat textures, even if you didn’t define any, it still has to do all the shader processing. The texture lookups end up just being white because they don’t exist, but it’s still going to do all the calculations for everything.
Thank you very much! So what is the best way, performance-wise, to render good textures from distance for my top-downgame without a huge fps drop on mobile? By using a different shader that can render groundtextures better, or…?
Yes, indeed. Because of the HUGE performance drop (10fps). I tried it on Asus Transformer Pad TF301T, so I think that is an ok device. I am using the ‘Built In Legacy Diffuse Shader’.
What is your splat textures resolution ? Why don’t you display splat textures instead of the base map ? Doing so you could decrease the size of your base map texture. In each case all of those textures goes into the device’s ram, which has a performance cost. 2048x2048 looks huge for a base map on mobile devices to me.
Consider this : “what on-screen size will my texture occupy ? Does it occupy more than “x” screen pixels ? I need my textures pixels to be slightly smaller than my screen pixel” this describe a good optimisation vs quality logic. If you never need to zoom-in more than what your screenshots shows, I’ll use 256² or 512² splat textures and would never display the base map, so I would decrease it’s size to the minimum.
The problem is that he is saying when he increases the base map distance so that splat textures are showing farther away, it causes an FPS drop. So having the basemap show earlier is better, however it’s not high enough quality.