Jump to content
  • Advertisement

Archived

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

MadKeithV

Optimisation Corner

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

Just thought I''d share this little thingie with you guys... I was building my current demo project today, and decided to do a dummy profile run, just for the hell of it. It turns out that 25% (!!!!) of execution time was going into a function that I didn''t even know was being called for every frame! ONE line of code added, and now that very same function doesn''t even show up in the top 10 of execution times. DUH! And here I was thinking my algorithms just sucked. ( It was a viewport-activating function, that RE-activated the same viewport every frame... now it remembers the previous viewport, and if it''s the same it doesn''t reactivate ) #pragma DWIM // Do What I Mean! ~ Mad Keith ~ **I use Software Mode**

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!