Portál AbcLinuxu, 11. května 2025 10:42
libGL warning: 3D driver claims to not support visual 0x5b do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. Try running with LIBGL_THROTTLE_REFRESH and LIBL_SYNC_REFRESH unset.Spustí se, ale renderování je nepoužitelně pomalé. Vlezte do adresáře s googleearth:
$ cd /opt/google-earthVytvořtě nový soubor:
/opt/google-earth$ vi drm_nowaitVblank.c #include <sys/time.h> #include <unistd.h> #include <string.h> #define DELAY 33333 int drmWaitVBlank(void) { static struct timeval last = { 0, 0 }; static struct timeval now = { 0, 0 }; int udiff; gettimeofday(&now, NULL); udiff = (int)now.tv_usec - (int)last.tv_usec; if (udiff < 0) udiff += 1000000; udiff -= DELAY; if (udiff < 0) usleep(-udiff); memcpy(&last, &now, sizeof(struct timeval)); return 0; }Zkompilujte:
/opt/google-earth$ gcc -o drm_nowaitVblank.so -shared -fPIC -ldl drm_nowaitVblank.cOtevřete si soubor ./googleearth a úplně dole změňte:
/opt/google-earth$ vi ./googleearth # Let's boogie! if [ -x "${GOOGLEEARTH_DATA_PATH}/googleearth-bin" ] then cd "${GOOGLEEARTH_DATA_PATH}/" LD_PRELOAD="./drm_nowaitVblank.so" exec "./googleearth-bin" $* fiTohle tomu pomohlo. thanks
deb http://ftp.cz.debian.org/debian jessie main contrib non-free
Na otázku zatím nikdo bohužel neodpověděl.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.