TAV: hopefully more steady playback

This commit is contained in:
minjaesong
2025-10-23 16:01:23 +09:00
parent e147072d03
commit 6f669f4fd9
3 changed files with 90 additions and 6 deletions

View File

@@ -107,7 +107,7 @@ open class GraphicsAdapter(private val assetsRoot: String, val vm: VM, val confi
internal val unusedArea = UnsafeHelper.allocate(1024, this)
internal val scanlineOffsets = UnsafeHelper.allocate(1024, this)
internal val videoBuffer = UnsafeHelper.allocate(48 * 1024 * 1024, this) // 48 MB for triple-buffering (3 slots × 21 frames × 752 kB)
internal val videoBuffer = UnsafeHelper.allocate(58 * 1024 * 1024, this) // 48 MB for triple-buffering (3 slots × 24 frames × 752 kB)
protected val paletteShader = LoadShader(DRAW_SHADER_VERT, config.paletteShader)
protected val textShader = LoadShader(DRAW_SHADER_VERT, config.fragShader)