View Full Version : masking and performance

01-28-2009, 09:10 PM
ok i'm making a 3d space game, I added a cockpit picture to be drawn on top of the background, i used masking with blending,but i realized it significantly lowers fps rate.

any alternate ideas on how to render a cockpit on top of the background scene?

game could be downloaded here:
controls :wsad ,arrow keys, Esc button

01-29-2009, 01:46 AM
What is your video card ?
If it is limited in fillrate, a full screen blended quad can indeed reduce performance.
What time per frame do you spend, before and after the cockpit ?

Using alpha testing + blending can make faster the completely transparent parts.
Or use opaque textured polygons without blending.

01-29-2009, 10:55 AM
yep loading a transparent .tga file as my texture and alpha testing did the job
thank you