multitheftauto/mtasa-blue

CGraphStats refactoring

Opened this issue · 1 comments

Is your feature request related to a problem? Please describe.

Refactoring of CGraphStats was attempted in #4385 but rejected during review.

Describe the solution you'd like

Will refactor the code for better frame graph.

Describe alternatives you've considered

No response

Additional context

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.

Existing refactor code:


CClientGame::DoPulses


CClientGame::DoPulsePostFrame

  • Prelude intent comment plus todo for later refactor
// TODO: (pxd) Refactor this function to reduce its size and complexity
// Pulse subsystems on post frame
void CClientGame::DoPulsePostFrame()
  • Add defer (Not needing lambda) to register checkpoint
    TIMING_CHECKPOINT("-CClientGame::DoPulsePostFrame");