mirror of
https://github.com/LibreVR/Revive.git
synced 2026-08-04 00:54:37 -04:00
20 lines
596 B
Text
20 lines
596 B
Text
How to add the profiler to the API Shim:
|
|
|
|
Pattern: \r\n return API.([A-Z|_|a-z]*)
|
|
Replace with: \r\n MICROPROFILE_SCOPEI("OVR", "$1", 0xff0000);\r\n return API.$1
|
|
|
|
Add MicroProfileFlip() to ovr_SubmitFrame().
|
|
|
|
Add the following to ovr_Initialize():
|
|
|
|
MH_DisableHook(MH_ALL_HOOKS);
|
|
|
|
MicroProfileSetForceEnable(true);
|
|
MicroProfileSetEnableAllGroups(true);
|
|
MicroProfileSetForceMetaCounters(true);
|
|
MicroProfileWebServerStart();
|
|
|
|
Add these definitions to the top of the API Shim for legacy support:
|
|
|
|
#define ovr_GetRenderDesc ovr_GetRenderDesc2
|
|
#define ovr_SubmitFrame ovr_SubmitFrame2
|