Jump to content
  • Advertisement


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


ROAMing with DirectX8

This topic is 6359 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, it`s not the Question how it works so I hope I get some answers. Here my question: I got my simple ROAMing Terrain workung under DirectX8. With no optimising and using DrawPrimitiveUP I got 12 FPS. So I thought about the algorythmus and how to integrate the Vertex Buffer. So, my question is: Is there any good chance to get high Performance with Directx8 and how do you solve the problem ? Thanks Lutz Hören P.S. Sorry for my bad English...

Share this post

Link to post
Share on other sites
Guest Anonymous Poster
The easiest solution is to lock your vertex buffer before you enter your recursive render function. Then in the render function, instead of rendering, copy the vertices to your vertexbuffer, and increase the triangle count.

When your recursive render has finished, unlock the vertexbuffer, and render all triangles copied into it in one go.

This, ofcourse, presents some further problems, but should give you a nice performance gain from your DrawPUP approach.


Share this post

Link to post
Share on other sites

  • 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!