simplify getting of max texture size for atlas, improve ffmpeg missing popup messages

This commit is contained in:
csd4ni3l
2025-07-21 23:50:48 +02:00
parent 9d7645ae65
commit 13742b8a0c
2 changed files with 6 additions and 9 deletions

7
run.py
View File

@@ -7,13 +7,10 @@ os.environ['SSL_CERT_FILE'] = certifi.where() # Fix SSL not working and download
import pyglet
pyglet.options.debug_gl = False
max_texture_size = pyglet.image.get_max_texture_size()
import logging, datetime, json, sys, arcade
window = pyglet.window.Window(visible=False, width=1, height=1)
max_tex_size = pyglet.gl.GLint()
pyglet.gl.glGetIntegerv(pyglet.gl.GL_MAX_TEXTURE_SIZE, max_tex_size)
arcade.ArcadeContext.atlas_size = (max_tex_size.value, max_tex_size.value)
window.close()
arcade.ArcadeContext.atlas_size = (max_texture_size, max_texture_size)
from utils.utils import get_closest_resolution, print_debug_info, on_exception
from utils.acoustid_metadata import get_fpcalc_path