Jump to content
  • Advertisement

Archived

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

Esap1

ITS SLOOOOOOOOW........

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

Im have trouble with rendering a simple 3d file. Im loading a .x file using that CRAPPY CD3DFILE class and calling its render function. My .x has about 1280 Vertices with about 600 faces, and 2 textures, 1 on 300 faces, and the other on the other 300 faces, the textures are 128x128x8bit, its a hallway and a couple little rooms, without any walls, just floor and ceiling. Well on my Duall Voodoo2 SLI and a K7550(110bus), Im getting about 10FPS!!!!!!!!!!!!!, this could not be normal, I just dont get the huge slowdown, yeah I havent implemented my portals yet, but there might be this many drawn on the screen anyway, even in a portal engine, and should it slow down to 10fps, is it The Render() function in the CD3DFILE class. Thanks A LOT in ADVANCE!!!!!

Share this post


Link to post
Share on other sites
Advertisement
Something to think about, how many game developers do you know that use that. Or let me rephrase, how many developers do you know that create there own custom engines?

Share this post


Link to post
Share on other sites
First of all, there were problems with that class. The sample D3DIM X viewer app is also pretty slow. I don''t know anymore what the cause of the slowdown was, but it had to do with all vertices being retransformed upon material / texture switching. Now, if you have one material switch per frame(render 300 tris, switch material, render the other 300 tris), you won''t loose too much speed. But if you do much switching, things can slow down tremendously.

This is probably your problem. Try sorting your triangles based on material, and use the standard DrawPrimitive calls. Do not compile your vertex array.

DaBit

Share this post


Link to post
Share on other sites
Two things, what does compiling your vertices mean, and should I sort by Material or by texture?(right now, they all have the same material, but they might not later)

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!