DosBox freezes with Threaded Video ON

Performance wise, tweaking those CPU cycle options help a lot, but I’ve found that with threaded video ON there is a minor boost in the internal game FPS. I can reach 60 FPS without threaded video ON, but if I try increasing the internal cycles a little more (with threaded video OFF), it starts the sound cracks. Problem is, it randomly freezes, some games crashed, sometimes the keyboard stopped working.

Is this a known issue?

It’s the first I’ve heard of it.

1 Like

I’ve generated this log:

[INFO] RetroArch 1.7.3 (Git 53140172ab)
[INFO] === Build =======================================
Capabilities: MMX MMXEXT SSE1 SSE2 SSE3 SSSE3 SSE4 SSE4.2 AVX AES 
Built: May  7 2018
[INFO] Version: 1.7.3
[INFO] Git: 53140172ab
[INFO] =================================================
[INFO] Environ SET_PIXEL_FORMAT: RGB565.
[INFO] Redirecting save file to \Emulators\Retroarch\saves\.srm".
[INFO] Redirecting savestate to \Retroarch\states\.state".
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 29970.03 Hz.
[INFO] [Video]: Video @ fullscreen
[INFO] [Video]: Starting threaded video driver ...
[INFO] [GL]: Found GL context: wgl
[INFO] [GL]: Detecting screen resolution 1920x1080.
[INFO] [WGL]: wglSwapInterval(0)
[INFO] [GL]: Vendor: NVIDIA Corporation, Renderer: /PCIe/SSE2.
[INFO] [GL]: Version: 4.6.0 NVIDIA 397.31.
[INFO] [GL]: Using resolution 1920x1080
[INFO] [GL]: Default shader backend found: glsl.
[INFO] [Shader driver]: Using Cg shader backend.
[INFO] [CG]: Vertex profile: gp5vp
[INFO] [CG]: Fragment profile: gp5fp
[INFO] [CG]: Loading Cg meta-shader: \Retroarch\shaders\shaders_cg\cgp\2xbr-hybrid-crt-hyllian.cgp
[INFO] Found #pragma parameter CRT - Phosphor ON/OFF (PHOSPHOR) 1.000000 0.000000 1.000000 1.000000
[INFO] Found #pragma parameter CRT - Scanlines Direction (VSCANLINES) 0.000000 0.000000 1.000000 1.000000
[INFO] Found #pragma parameter CRT - Input gamma (InputGamma) 2.500000 0.000000 5.000000 0.100000
[INFO] Found #pragma parameter CRT - Output Gamma (OutputGamma) 2.200000 0.000000 5.000000 0.100000
[INFO] Found #pragma parameter CRT - Sharpness Hack (SHARPNESS) 1.000000 1.000000 5.000000 1.000000
[INFO] Found #pragma parameter CRT - Color Boost (COLOR_BOOST) 1.500000 1.000000 2.000000 0.050000
[INFO] Found #pragma parameter CRT - Red Boost (RED_BOOST) 1.000000 1.000000 2.000000 0.010000
[INFO] Found #pragma parameter CRT - Green Boost (GREEN_BOOST) 1.000000 1.000000 2.000000 0.010000
[INFO] Found #pragma parameter CRT - Blue Boost (BLUE_BOOST) 1.000000 1.000000 2.000000 0.010000
[INFO] Found #pragma parameter CRT - Scanline Strength (SCANLINES_STRENGTH) 0.500000 0.000000 1.000000 0.020000
[INFO] Found #pragma parameter CRT - Min Beam Width (BEAM_MIN_WIDTH) 0.860000 0.000000 1.000000 0.020000
[INFO] Found #pragma parameter CRT - Max Beam Width (BEAM_MAX_WIDTH) 1.000000 0.000000 1.000000 0.020000
[INFO] Found #pragma parameter CRT - Anti-Ringing (CRT_ANTI_RINGING) 0.800000 0.000000 1.000000 0.100000
[INFO] [CG]: Loading Cg shader: "\Retroarch\shaders\shaders_cg\cgp\../xbr/shaders/xbr-hybrid/2xbr-hybrid-v4.cg".
[INFO] [CG]: Loading Cg shader: "\Retroarch\shaders\shaders_cg\cgp\../crt/shaders/crt-hyllian.cg".
[INFO] [CG]: Found semantic "POSITION" in prog #1.
[INFO] [CG]: Found semantic "COLOR" in prog #1.
[INFO] [CG]: Found semantic "TEXCOORD0" in prog #1.
[INFO] [CG]: Found semantic "" in prog #2.
[INFO] [CG]: Found semantic "COLOR" in prog #2.
[INFO] [CG]: Found semantic "POSITION" in prog #2.
[INFO] [CG]: Found semantic "TEXCOORD0" in prog #2.
[INFO] [CG]: Found semantic "TEXCOORD1" in prog #2.
[INFO] Setting up menu pipeline shaders for XMB ... 
[INFO] [CG]: Found semantic "POSITION" in prog #24.
[INFO] [CG]: Found semantic "COLOR" in prog #24.
[INFO] [CG]: Found semantic "TEXCOORD0" in prog #24.
[INFO] [CG]: Found semantic "POSITION" in prog #23.
[INFO] [CG]: Found semantic "COLOR" in prog #23.
[INFO] [CG]: Found semantic "TEXCOORD0" in prog #23.
[INFO] [CG]: Found semantic "POSITION" in prog #22.
[INFO] [CG]: Found semantic "COLOR" in prog #22.
[INFO] [CG]: Found semantic "TEXCOORD0" in prog #22.
[INFO] Resetting shader to defaults ... 
[INFO] [GL]: Using 4 textures.
[INFO] [GL]: Loaded 2 program(s).
[INFO] [GL]: Using GL_RGB565 for texture uploads.
[INFO] [GL]: Creating FBO 0 @ 1024x512
[INFO] [XInput]: Found XInput v1.4.
[INFO] [XInput]: Found XInput v1.4.
[INFO] [DINPUT]: Enumerating joypads ...
[INFO] [DINPUT]: Done enumerating joypads ...
[INFO] [Joypad]: Found joypad driver: "dinput".
[INFO] [Font]: Using font rendering backend: freetype.
[ERROR] [dispserv]: CoCreateInstance of ITaskbarList3 failed.
[INFO] [Video]: Found display server: win32
[INFO] XAudio2: Requesting 64 ms latency, using 64 ms latency.
[INFO] [Menu]: Found menu display driver: "menu_display_gl".
[INFO] Found #pragma parameter CRT - Phosphor ON/OFF (PHOSPHOR) 1.000000 0.000000 1.000000 1.000000
[INFO] Found #pragma parameter CRT - Scanlines Direction (VSCANLINES) 0.000000 0.000000 1.000000 1.000000
[INFO] Found #pragma parameter CRT - Input gamma (InputGamma) 2.500000 0.000000 5.000000 0.100000
[INFO] Found #pragma parameter CRT - Output Gamma (OutputGamma) 2.200000 0.000000 5.000000 0.100000
[INFO] Found #pragma parameter CRT - Sharpness Hack (SHARPNESS) 1.000000 1.000000 5.000000 1.000000
[INFO] Found #pragma parameter CRT - Color Boost (COLOR_BOOST) 1.500000 1.000000 2.000000 0.050000
[INFO] Found #pragma parameter CRT - Red Boost (RED_BOOST) 1.000000 1.000000 2.000000 0.010000
[INFO] Found #pragma parameter CRT - Green Boost (GREEN_BOOST) 1.000000 1.000000 2.000000 0.010000
[INFO] Found #pragma parameter CRT - Blue Boost (BLUE_BOOST) 1.000000 1.000000 2.000000 0.010000
[INFO] Found #pragma parameter CRT - Scanline Strength (SCANLINES_STRENGTH) 0.500000 0.000000 1.000000 0.020000
[INFO] Found #pragma parameter CRT - Min Beam Width (BEAM_MIN_WIDTH) 0.860000 0.000000 1.000000 0.020000
[INFO] Found #pragma parameter CRT - Max Beam Width (BEAM_MAX_WIDTH) 1.000000 0.000000 1.000000 0.020000
[INFO] Found #pragma parameter CRT - Anti-Ringing (CRT_ANTI_RINGING) 0.800000 0.000000 1.000000 0.100000
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [LED]: LED driver = 'null' 00000000008DC560
[WARN] Input device ID 5 is unknown to this libretro implementation. Using RETRO_DEVICE_JOYPAD.
[INFO] SRAM will not be saved.
[INFO] Found #pragma parameter CRT - Phosphor ON/OFF (PHOSPHOR) 1.000000 0.000000 1.000000 1.000000
[INFO] Found #pragma parameter CRT - Scanlines Direction (VSCANLINES) 0.000000 0.000000 1.000000 1.000000
[INFO] Found #pragma parameter CRT - Input gamma (InputGamma) 2.500000 0.000000 5.000000 0.100000
[INFO] Found #pragma parameter CRT - Output Gamma (OutputGamma) 2.200000 0.000000 5.000000 0.100000
[INFO] Found #pragma parameter CRT - Sharpness Hack (SHARPNESS) 1.000000 1.000000 5.000000 1.000000
[INFO] Found #pragma parameter CRT - Color Boost (COLOR_BOOST) 1.500000 1.000000 2.000000 0.050000
[INFO] Found #pragma parameter CRT - Red Boost (RED_BOOST) 1.000000 1.000000 2.000000 0.010000
[INFO] Found #pragma parameter CRT - Green Boost (GREEN_BOOST) 1.000000 1.000000 2.000000 0.010000
[INFO] Found #pragma parameter CRT - Blue Boost (BLUE_BOOST) 1.000000 1.000000 2.000000 0.010000
[INFO] Found #pragma parameter CRT - Scanline Strength (SCANLINES_STRENGTH) 0.500000 0.000000 1.000000 0.020000
[INFO] Found #pragma parameter CRT - Min Beam Width (BEAM_MIN_WIDTH) 0.860000 0.000000 1.000000 0.020000
[INFO] Found #pragma parameter CRT - Max Beam Width (BEAM_MAX_WIDTH) 1.000000 0.000000 1.000000 0.020000
[INFO] Found #pragma parameter CRT - Anti-Ringing (CRT_ANTI_RINGING) 0.800000 0.000000 1.000000 0.100000
[INFO] Loading history file: [K:\HyperSpin\Emulators\Retroarch\content_history.lpl].
[INFO] Loading history file: [K:\HyperSpin\Emulators\Retroarch\content_favorites.lpl].
[INFO] Loading history file: [K:\HyperSpin\Emulators\Retroarch\content_music_history.lpl].
[INFO] Loading history file: [K:\HyperSpin\Emulators\Retroarch\content_video_history.lpl].
[INFO] Loading history file: [K:\HyperSpin\Emulators\Retroarch\content_image_history.lpl].
[INFO] [Config]: Saved new config to "K:\HyperSpin\Emulators\Retroarch\retroarch.cfg".
[INFO] [CG]: Destroying programs.
[INFO] [CG]: Destroying context.
[INFO] Threaded video stats: Frames pushed: 163, Frames dropped: 0.

I tested some games with threaded video ON, but they only worked without freezes with it OFF.

Was this a log of a freeze? When it freezes, can you get back into the menu or do you need to force-quit RetroArch?

1 Like

I’m not too technical, but I’ll try to reproduce the issues in different games. Can you confirm I’m logging it correctly? I’m using these parameters in a shortcut for the main Retroarch.exe

-retroarch --menu --verbose >> retroarch.log 2>&1

Is it correct?

Yeah, that’s how to do it.

I don’t really see anything useful in that log, but maybe another one will tell us more.

1 Like

I restarted my PC and went straight to Retroarch with the log bat file and opened Blood in Dosbox, played for 15 minutes with threaded video ON and the game did not have any issue, I’ll test others to see if they are OK, but since you at first told me you never heard about threaded video having issues with Dosbox, it’s probably something in my end that was somehow conflicting with it.

1 Like