Skip to content

Commit

Permalink
Fix rendering non-determinsim...
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamenot committed Aug 4, 2023
1 parent 1577eb9 commit 00848bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smarts/p3d/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class _ShowBaseInstance(ShowBase):
"""Wraps a singleton instance of ShowBase from Panda3D."""

_debug_mode: DEBUG_MODE = DEBUG_MODE.WARNING
_rendering_backend: str = "p3headlessgl"
_rendering_backend: str = "pandagl"

def __new__(cls):
# Singleton pattern: ensure only 1 ShowBase instance
Expand All @@ -84,11 +84,11 @@ def __new__(cls):
"",
f"load-display {cls._rendering_backend}",
)
loadPrcFileData("", "aux-display p3headlessgl")
loadPrcFileData("", "aux-display pandagl")
loadPrcFileData("", "aux-display pandadx9")
loadPrcFileData("", "aux-display pandagles")
loadPrcFileData("", "aux-display pandagles2")
loadPrcFileData("", "aux-display p3headlessgl")
loadPrcFileData("", "aux-display p3tinydisplay")

# disable vsync otherwise we are limited to refresh-rate of screen
Expand Down

0 comments on commit 00848bd

Please sign in to comment.