Menu

#302 speed up add_texture

closed-rejected
nobody
None
5
2015-08-29
2015-05-19
lost-coder
No

In CNullDriver.add_texture() the Textures array is appended then sorted. This takes significantly more time as the length of the array increases. Since Textures is always kept sorted it would be more efficient to use a sorted insert.

This method also fixes a TODO in CVideoModeList.addMode().

The attached patch is against 1.8.1

1 Attachments

Discussion

  • Michael Zeilfelder

    • status: open --> closed-rejected
     
  • Michael Zeilfelder

    Sorry, we don't use STL in Irrlicht so far (aka algorithm).
    Might change some day, but not before 1.9 release.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.