og-revive/LibOVRProxy/HowTo.txt
2017-08-28 00:00:30 +02:00

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