Skip to content

Commit

Permalink
In virtualbox or very old PC use software render
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbruno committed Dec 5, 2024
1 parent af7ebc6 commit 8cff5c2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions bigbashview/usr/lib/bbv/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,13 @@ def formatter(prog):
if args.gpu:
flags += (' --enable-gpu-rasterization')
else:
# os.environ['QT_QUICK_BACKEND'] = 'software'
# flags += ('--disable-gpu --disable-webgl --disable-accelerated-video-decode --disable-accelerated-video-encode --num-raster-threads=0')
flags += (' --disable-webgl --disable-accelerated-video-decode --disable-accelerated-video-encode --num-raster-threads=0')
if os.environ.get('QSG_RENDER_LOOP') == 'basic':
os.environ['QT_QUICK_BACKEND'] = 'software'
flags += (' --disable-gpu --disable-webgl --disable-accelerated-video-decode --disable-accelerated-video-encode --num-raster-threads=0')
else:
flags += (' --disable-webgl --disable-accelerated-video-decode --disable-accelerated-video-encode --num-raster-threads=0')

# Verifica se a variável de ambiente QTWEBENGINE_CHROMIUM_FLAGS está vazia ou não definida
# Verify envitonment variable QTWEBENGINE_CHROMIUM_FLAGS if defined
if not os.environ.get('QTWEBENGINE_CHROMIUM_FLAGS', ''):
os.environ['QTWEBENGINE_CHROMIUM_FLAGS'] = flags

Expand Down

0 comments on commit 8cff5c2

Please sign in to comment.