refactor renderDebugCompass