Jump to content
  • Advertisement

Archived

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

basilisk

display lists and fractal trees

This topic is 6027 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 using a recursive algorithm to build fractal trees that i''m putting in a scene. I put the call for fractal tree drawing code into a display list but there is apparently no performance increase. For a performance advantage do i need to have all the drawing code within the same function because right now all the drawing code is in another function but it is called like this: GLvoid BuildLists() { g_dlistftree=glGenLists(1); glNewList(g_dlistftree,GL_COMPILE); DL_drawtree(3.0f,4); glEndList(); } Since it''s a recursive algorithm, i obviously can''t put the drawing code within the buildlist unless i change it into a iterative one. Any suggestions would be appreciated, Thanks

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.

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

Sign me up!