• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Texture Swapping and Efficiency

A

altarar

Guest
This is more a theoretical question, no code has been written down yet. Let's assume I want to create a dynamic environment and I want to use vertex buffers to draw things so I will be able to use vertex shaders to create some effects. Of course there is going to be a need to have many different textures and the game will have to swap between them alot. And my question is - how expensive is this operation? Let's say that in the worst scenario I could possible have even 20+ separated texture pages. Would it be worth to build some kind of a priority system which would draw all things that use the same texture page so the game doesn't need to swap that much?
 

vdweller

Member
On today's PCs you shouldn't have any problem even with 30 swaps. Mobile and certain other handheld devices may struggle though.
 
Top