mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 21:22:48 +00:00
2e07dcf1e7
This is a pretty popular approach that took a while for me to wrap my head around and which only recently got "official" support through an update (xdg_shell version 6), so I think that this is all-in-all a better option than the overkill 2000Hz ticking we have now :P Basically, we wait for a frame event and, if either too much time passes or we get the new `suspended` state, we consider the window as "hidden" and stop drawing, ticking by the low usage rate. This should work great for KDE and Mutter, which support the new state, but not yet for sway, which is still stuck at a very old xdg_shell version and thus falls back to the timeout approach. Be aware that if we rely on timing out the engine will have to stall for the whole timeout, which _could_ be problematic but doensn't seem like it. Further testing is needed. Special thanks go to the guys over at #wayland on OFTC, who very patiently explained me this approach way too many times. |
||
---|---|---|
.. | ||
doc_classes | ||
export | ||
wayland | ||
x11 | ||
crash_handler_linuxbsd.cpp | ||
crash_handler_linuxbsd.h | ||
dbus-so_wrap.c | ||
dbus-so_wrap.h | ||
detect.py | ||
fontconfig-so_wrap.c | ||
fontconfig-so_wrap.h | ||
freedesktop_portal_desktop.cpp | ||
freedesktop_portal_desktop.h | ||
freedesktop_screensaver.cpp | ||
freedesktop_screensaver.h | ||
godot_linuxbsd.cpp | ||
joypad_linux.cpp | ||
joypad_linux.h | ||
libudev-so_wrap.c | ||
libudev-so_wrap.h | ||
os_linuxbsd.cpp | ||
os_linuxbsd.h | ||
platform_config.h | ||
platform_gl.h | ||
platform_linuxbsd_builders.py | ||
README.md | ||
SCsub | ||
speechd-so_wrap.c | ||
speechd-so_wrap.h | ||
tts_linux.cpp | ||
tts_linux.h | ||
xkbcommon-so_wrap.c | ||
xkbcommon-so_wrap.h |
Linux/*BSD platform port
This folder contains the C++ code for the Linux/*BSD platform port.
See also misc/dist/linux
folder for additional files
used by this platform.
Documentation
- Compiling for Linux/*BSD
- Instructions on building this platform port from source.
- Exporting for Linux/*BSD
- Instructions on using the compiled export templates to export a project.
Artwork license
logo.png
is derived from the Linux logo:
Permission to use and/or modify this image is granted provided you acknowledge me lewing@isc.tamu.edu and The GIMP if someone asks.