Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

kobingo

Faster framerates when using Device.SetTransform() ? Weird!

This topic is 5807 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

Hi I'm rendering 1 rectangle with this code:
device.SetStreamSource(0, vertexBuffer, 0);
device.VertexFormat = CustomVertex.PositionColored.Format;
device.DrawPrimitives(PrimitiveType.TriangleStrip,0,2);
  
When setting the world transform before rendering I get about 400 fps, not set the world transform gives me about 370 fps, isn't that strange? Also, for every rectangle I add to the scene the fps drops with about 30-40. Anyone knows what I could be doing wrong? Thanks in advance! /Kobingo Also, I'm using DirectX 9 with C#... [edited by - Kobingo on December 24, 2002 5:14:20 PM]

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!