[PATCH] branching in minimap texture filling
Avoiding "if" inside big loops allows CPU to avoid branch mispredictions.
In this case, just memsetting all to 0 prior the loop avoid some if in the loop code just to fill it with zeroes.
Change History
(7)
Description: |
modified (diff)
|
Summary: |
branching in minimap texture filling → [PATCH] branching in minimap texture filling
|
Keywords: |
patch review added
|
Milestone: |
Backlog → Alpha 14
|
Priority: |
Should Have → Nice to Have
|
Owner: |
set to tuan kuranes
|
Milestone: |
Alpha 14 → Alpha 15
|
Keywords: |
reviewed added; review removed
|
Keywords: |
reviewed removed
|
Resolution: |
→ wontfix
|
Status: |
new → closed
|
Looks like it doesn't actually change much in terms of performance, since any gain you get from the branching optimization is negated by the memset.
I'll have to close this for now.