janusvr/janus

Large memory leak when "Performance Overlay" is shown

Opened this issue · 3 comments

As soon as the PO is visible (toggled with '\'), the system memory starts filling up

The two places I'd look first would be here:

else if (show_position_mode) {

else if (show_position_mode) {

Most memory profiling tools I've used previously let you snapshot memory in one frame, snapshot another frame, then compare them. The delta will show you the leak without much debugging required.

Thank you!

Ah, I have earlier done some testing on these sections and unfortunately deleted my changes, but I didn't find a definitive reason to what was causing the leak as far as I can remember.