Sign in to follow this  

i have add HLSL in my engine, but...

This topic is 4863 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Usualy when i change the rez of my game, the frame rate get changed. 800*600 = 1420 fps 1024*768 = 800fps 1600*1200 = 400 fps but sine my model have is color and texture added by HLSL the frame rate always get lock at ~210 fps @ any rez. Why ? thoue

Share this post


Link to post
Share on other sites
Quote:
From ATI-DX9_Optimization.pdf

Types of bottlenecks and their detection


There are many factors that contribute to the graphics system performance, however at the very coarse level performance can be defined to be limited by non-graphics components or graphics components. Non-graphics component bottlenecks can be caused by CPU load or memory bandwidth. You can try identifying this kind of performance bottleneck by varying performance of the graphics system. If performance does not change with varying graphics card performance, but is affected by CPU speed, you are most likely dealing with non-graphics bottleneck. On the other hand if CPU makes little difference, but changing graphics card performance and resolution affect overall efficiency, you have got a graphics system bottleneck.


What videocard do you have?

Share this post


Link to post
Share on other sites
from microsoft directx 9.0c summer 2004 SDK
basicHLSL sample. when yoiu load a model do this and it will improve fps


// Optimize the mesh for this graphics card's vertex cache
// so when rendering the mesh's triangle list the vertices will
// cache hit more often so it won't have to re-execute the vertex shader
// on those vertices so it will improve perf.
int[] adj = mesh.ConvertPointRepsToAdjacency(null as GraphicsStream);
mesh.OptimizeInPlace(d3d.MeshFlags.OptimizeVertexCache, adj);

Share this post


Link to post
Share on other sites

This topic is 4863 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this