Skip to content
Snippets Groups Projects

Don't repeatedly look for model texture files

Merged Hannu Hanhi requested to merge Hannu_Hanhi/SRB2:ogl-mdl-tex-repeat-search-fix into next

This patch improves OGL model performance by eliminating unnecessary texture and blend texture file lookups when they are not found. After the first load attempt, a flag in the model data is set if the texture or blend texture file is not found so it is not searched for again.

Performance comparison on a cherry-picked scenario: (among other things, the TNT barrels trigger this inefficiency)

Before After
srb20130 Total time in scene rendering function: 2925 microseconds srb20129 Total time in scene rendering function: 1168 microseconds

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading