microsoft / D3D12TranslationLayer

A library containing utilities for mapping higher-level graphics work to D3D12
MIT License
327 stars 47 forks source link

Move GetCurrentBudget calls into conditional to save performance #73

Closed IanDunn-Intel closed 1 year ago

IanDunn-Intel commented 1 year ago

GetCurrentBudget for LM and Non-LM is taking up a lot of CPU-time in the residency management logic, but it can be moved into a conditional branch for "Count > 1" (num cmd lists) which is frequently skipped.

Expecting ~1% performance gain on CS:GO for some platforms