Skip to content

Conversation

@Morilli
Copy link
Collaborator

@Morilli Morilli commented Nov 15, 2024

Work in progress update of the mupen64plus core to the latest version. This would ideally improve compatibility and increase accuracy and be a real-time playable alternative to the existing ares64 core.

dev build for branch | Morilli:tmp-mupen

There's a couple of known TODOs that need to be resolved:

  • RSP and RDP plugin choices are not final. Currently the diff contains the angrylion-plus, GLideN64 and paraLLEl RDP plugins and mupen64plus's HLE and cxd4 RSP plugins and the paraLLEl rsp plugin. Apparently mupen-rr uses better-gln64 which may be worth considering for its high speed.
  • sync settings for plugins need to be implemented; those are currently all default because no choices exist done
  • integrate mupen core and plugin sources and build in the bizhawk repo; I currently build from a fork that is not checked in to bizhawk (https://github.com/Morilli/mupen64plus-core/tree/bizhawk) <-- done, added basic build script. There's still some issues while waiting for upstream commits, but assuming we fork all projects anyway that shouldn't be a blocker
  • IDebuggable functionality is missing, mainly because registers aren't implemented. Registers not being implemented also affects ITraceable impl (why is that required but only exposed in IDebuggable... whatever)
  • the (mupen) debugger has some overhead and should be toggleable I'll consider this unfeasible as lots of functionality depends on the debugger now, overhead is probably negligible
  • compile for linux as well
  • some games have graphical issues with GLideN64, this appears to be a plugin issue that can't be resolved easily resolved upstream
  • lots of testing, I have no test roms or known complex test games so I can't say whether anything is broken beyond simple game boots working
  • re-investigate linux binaries after 25203c5 program freeze has been resolved via workaround (see [🐧] BizInvoker does not cause gc mode switch without compatibility argument #4553), GLideN64 crash resolved via compiler arguments, cxd4 crash has been resolved upstream
  • reimplement the digital-->analog controls, or do it properly in the frontend (Ares64 does not have the analog stick controls unlike Mupen64Plus #3871)

The diff should be relatively clean, the commit history isn't. Best to look at the full diff instead of individual commits.

@vadosnaprimer
Copy link
Contributor

I feel I should let @Wyst3r know about this.

@Morilli
Copy link
Collaborator Author

Morilli commented Nov 17, 2024

The latest commit adds linux binaries which "work", as in everything loads, but I've experienced freezing after 1-100 frames. It's not a crash, just an unresponsiveness forcing me to close the program. I have no idea how to debug this except by adding dozens of console.writelines and trying to narrow down the place it's getting stuck at.

@zeromus zeromus removed their request for review November 18, 2024 07:54
@Spikestuff
Copy link

Spikestuff commented Nov 21, 2024

Just for the sake of re-documenting it here and not like somewhere in the Discord (and it is the first todo point).

better gln64 is a high recommended from Mupen64-rr-lua mainly for it having low hardware requirements and better to TAS with.

The only caveat against it from what I can tell is that it's HLE and not LLE and some glitches with certain titles (which some of the plugins already in Hawk has those issues). So in other words it would be a suitable replacement to Rice (so lowest of the low).

And whilst porting it, it's probably beneficial to disable the texture settings (technically you can hide everything, and make it just the plugin, but some people might benefit from disabling fog).

@YoshiRulz YoshiRulz added this to the Mupen64+ update milestone Nov 27, 2024
@Morilli
Copy link
Collaborator Author

Morilli commented Jan 22, 2025

Linux can be fixed to work with all currently checked in binaries by applying the following diff:

diff --git a/Assets/EmuHawkMono.sh b/Assets/EmuHawkMono.sh
index 7ca69f6ea..e695450ac 100755
--- a/Assets/EmuHawkMono.sh
+++ b/Assets/EmuHawkMono.sh
@@ -18,6 +18,7 @@ fi
 export LD_LIBRARY_PATH="$PWD/dll:$PWD:$libpath"
 export MONO_CRASH_NOFILE=1
 export MONO_WINFORMS_XIM_STYLE=disabled # see https://bugzilla.xamarin.com/show_bug.cgi?id=28047#c9
+export MONO_THREADS_SUSPEND=preemptive
 if [ "$1" = "--mono-no-redirect" ]; then
 #	printf "(passing --mono-no-redirect is no longer necessary)\n" #TODO uncomment later
 	shift

Looking at the documentation, it looks like this might be an actual mono bug (maybe mono/mono#14084 ?). Either hybrid (default) or coop values hang for me, just preemptive works without issues.

YoshiRulz added a commit that referenced this pull request Jan 22, 2025
@YoshiRulz
Copy link
Member

YoshiRulz commented Jan 22, 2025

Pre-emptive mode also improved framerates in managed and maybe wbox, so ^ I set it globally. Nice find!

Testing this branch now. Well it doesn't hang and the audio is working, but still no video.
solitaire effect
That's with GLideN64. I tried changing it to angrylion-plus as suggested but got a black screen with no audio.

@Morilli
Copy link
Collaborator Author

Morilli commented Jan 22, 2025

Well it doesn't hang and the audio is working, but still no video.
That's with GLideN64. I tried changing it to angrylion-plus as suggested but got a black screen with no audio.

Could you post the full stdout/stderr output? There should be some logging about plugins in the beginning.

@YoshiRulz
Copy link
Member

GLideN64
running as unprivileged user
HawkFile bound /home/yoshi/Documents/BizHawk/output/gamedb/mame_machines.txt
HawkFile bound /home/yoshi/Documents/BizHawk/output/gamedb/NesCarts.xml
MAME Machine DB load: 00:00:00.0222606 sec
Bootgod DB load: 00:00:00.1173148 sec
throttle method: 1; resolution: 10000000
extra bundled gamedb files were not #included: gamedb_3ds.txt, gamedb_msx2-L.txt, mame_machines.txt, gamedb_Odyssey2.txt, gamedb_msx1-L.txt
GameDB load: 00:00:00.6495401 sec
Using SDL2 for host input (keyboard + gamepads)
HawkFile bound /home/yoshi/Downloads/roms/cam_proj_rev/Super Mario 64 (USA).n64
Game was not in DB. CRC: 3CE60709 MD5: 20B854B239203BAF6C961B850A4A51A2
N64
DEBUG CALLBACK 2: No version number in 'Core' config section. Setting defaults.
DEBUG CALLBACK 2: No version number in 'CoreEvents' config section. Setting defaults.
DEBUG CALLBACK 3: Using full mem base
DEBUG CALLBACK 1: Unable to open rom database file '(null)'.
SUCCESS
SUCCESS
DEBUG CALLBACK 3: Goodname: SUPER MARIO 64 (unknown rom)
DEBUG CALLBACK 3: Name: SUPER MARIO 64      
DEBUG CALLBACK 3: MD5: 20B854B239203BAF6C961B850A4A51A2
DEBUG CALLBACK 3: CRC: 635A2BFF 8B022326
DEBUG CALLBACK 3: Imagetype: .z64 (native)
DEBUG CALLBACK 3: Rom size: 8388608 bytes (or 8 Mb or 64 Megabits)
DEBUG CALLBACK 5: ClockRate = F
DEBUG CALLBACK 3: Version: 1444
DEBUG CALLBACK 3: Manufacturer: Nintendo
DEBUG CALLBACK 5: Cartridge_ID: 4D53
DEBUG CALLBACK 3: Country: USA
DEBUG CALLBACK 5: PC = 80246000
DEBUG CALLBACK 5: Save type: 0
SUCCESS
SUCCESS
SUCCESS
SUCCESS
SUCCESS
SUCCESS
DEBUG CALLBACK 2: Input plugin does not contain VRU support.
DEBUG CALLBACK 3: input plugin did not specify a render callback; there will be no on screen display by the input plugin.
SUCCESS
SUCCESS
SUCCESS
SUCCESS
DEBUG CALLBACK 3: Using video capture backend: dummy
DEBUG CALLBACK 3: Using CIC type X102
Attempted to SetVideoMode, width 640, height 480, bpp 0, screenMode WINDOWED, flags SUPPORT_RESIZING
State changed! Param VIDEO_MODE, new value 2
State changed! Param VIDEO_SIZE, new value 41943520
DebugSourceApi DebugTypeOther DebugSeverityNotification: Buffer detailed info: Buffer object 1 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) will use SYSTEM HEAP memory as the source for buffer object operations.
DebugSourceApi DebugTypeOther DebugSeverityNotification: Buffer detailed info: Buffer object 1 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) has been mapped WRITE_ONLY in SYSTEM HEAP memory (fast).
DebugSourceApi DebugTypeOther DebugSeverityNotification: Buffer detailed info: Buffer object 2 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) will use SYSTEM HEAP memory as the source for buffer object operations.
DebugSourceApi DebugTypeOther DebugSeverityNotification: Buffer detailed info: Buffer object 2 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) has been mapped WRITE_ONLY in SYSTEM HEAP memory (fast).
DebugSourceApi DebugTypeOther DebugSeverityNotification: Buffer detailed info: Buffer object 3 (bound to GL_ELEMENT_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) will use SYSTEM HEAP memory as the source for buffer object operations.
DebugSourceApi DebugTypeOther DebugSeverityNotification: Buffer detailed info: Buffer object 3 (bound to GL_ELEMENT_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) has been mapped WRITE_ONLY in SYSTEM HEAP memory (fast).
SwapBuffers was called.
SwapBuffers was called.
SwapBuffers was called.
SwapBuffers was called.
SwapBuffers was called.
SwapBuffers was called.
SwapBuffers was called.
SwapBuffers was called.
SwapBuffers was called.
SwapBuffers was called.
SwapBuffers was called.
SwapBuffers was called.
SwapBuffers was called.
SwapBuffers was called.
SwapBuffers was called.
SwapBuffers was called.
SwapBuffers was called.
SwapBuffers was called.
SwapBuffers was called.
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
State changed! Param EMU_STATE, new value 2
DEBUG CALLBACK 3: Initializing 2 RDRAM modules for a total of 4 MB
DEBUG CALLBACK 3: Starting R4300 emulator: Dynamic Recompiler
DEBUG CALLBACK 3: Init new dynarec
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
DebugSourceApi DebugTypeError DebugSeverityHigh: GL_INVALID_OPERATION error generated. The required buffer is missing.
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
DebugSourceApi DebugTypeError DebugSeverityHigh: GL_INVALID_OPERATION error generated. The required buffer is missing.
SwapBuffers was called.
DebugSourceApi DebugTypeOther DebugSeverityNotification: Buffer detailed info: Buffer object 1 (bound to GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB (0), GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB (1), GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB (2), and GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
DebugSourceApi DebugTypeError DebugSeverityHigh: GL_INVALID_OPERATION error generated. The required buffer is missing.
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
DebugSourceApi DebugTypeError DebugSeverityHigh: GL_INVALID_OPERATION error generated. The required buffer is missing.
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
DebugSourceApi DebugTypeError DebugSeverityHigh: GL_INVALID_OPERATION error generated. The required buffer is missing.
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
DebugSourceApi DebugTypeError DebugSeverityHigh: GL_INVALID_OPERATION error generated. The required buffer is missing.
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
DebugSourceApi DebugTypeError DebugSeverityHigh: GL_INVALID_OPERATION error generated. The required buffer is missing.
reading and enqueuing 320 samples
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
DebugSourceApi DebugTypeError DebugSeverityHigh: GL_INVALID_OPERATION error generated. The required buffer is missing.
reading and enqueuing 320 samples
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
DebugSourceApi DebugTypeError DebugSeverityHigh: GL_INVALID_OPERATION error generated. The required buffer is missing.
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
DebugSourceApi DebugTypeError DebugSeverityHigh: GL_INVALID_OPERATION error generated. The required buffer is missing.
reading and enqueuing 1120 samples
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
DebugSourceApi DebugTypeError DebugSeverityHigh: GL_INVALID_OPERATION error generated. The required buffer is missing.
reading and enqueuing 1120 samples
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
DebugSourceApi DebugTypeError DebugSeverityHigh: GL_INVALID_OPERATION error generated. The required buffer is missing.
reading and enqueuing 1120 samples
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
DebugSourceApi DebugTypeError DebugSeverityHigh: GL_INVALID_OPERATION error generated. The required buffer is missing.
reading and enqueuing 1120 samples
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
DebugSourceApi DebugTypeError DebugSeverityHigh: GL_INVALID_OPERATION error generated. The required buffer is missing.
reading and enqueuing 1120 samples
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
DebugSourceApi DebugTypeError DebugSeverityHigh: GL_INVALID_OPERATION error generated. The required buffer is missing.
reading and enqueuing 1088 samples
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
DebugSourceApi DebugTypeError DebugSeverityHigh: GL_INVALID_OPERATION error generated. The required buffer is missing.
reading and enqueuing 1056 samples
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
DebugSourceApi DebugTypeError DebugSeverityHigh: GL_INVALID_OPERATION error generated. The required buffer is missing.
reading and enqueuing 1056 samples
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
DebugSourceApi DebugTypeError DebugSeverityHigh: GL_INVALID_OPERATION error generated. The required buffer is missing.
reading and enqueuing 1056 samples
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
DebugSourceApi DebugTypeError DebugSeverityHigh: GL_INVALID_OPERATION error generated. The required buffer is missing.
reading and enqueuing 1056 samples
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
DebugSourceApi DebugTypeError DebugSeverityHigh: GL_INVALID_OPERATION error generated. The required buffer is missing.
reading and enqueuing 1056 samples
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
DebugSourceApi DebugTypeError DebugSeverityHigh: GL_INVALID_OPERATION error generated. The required buffer is missing.
reading and enqueuing 1056 samples
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
DebugSourceApi DebugTypeError DebugSeverityHigh: GL_INVALID_OPERATION error generated. The required buffer is missing.
reading and enqueuing 1056 samples
SwapBuffers was called.
entering dispose...
DEBUG CALLBACK 4: Stopping emulation.
State changed! Param EMU_STATE, new value 2
State changed! Param EMU_STATE, new value 2
SUCCESS
DEBUG CALLBACK 3: R4300 emulator finished.
State changed! Param VIDEO_MODE, new value 1
State changed! Param EMU_STATE, new value 1
DEBUG CALLBACK 4: Rom closed.
BizHawk has completed its shutdown routines, killing process...
angrylion-plus
running as unprivileged user
HawkFile bound /home/yoshi/Documents/BizHawk/output/gamedb/mame_machines.txt
HawkFile bound /home/yoshi/Documents/BizHawk/output/gamedb/NesCarts.xml
MAME Machine DB load: 00:00:00.0244529 sec
Bootgod DB load: 00:00:00.1245037 sec
throttle method: 1; resolution: 10000000
extra bundled gamedb files were not #included: gamedb_3ds.txt, gamedb_msx2-L.txt, mame_machines.txt, gamedb_Odyssey2.txt, gamedb_msx1-L.txt
GameDB load: 00:00:00.6678550 sec
Using SDL2 for host input (keyboard + gamepads)
HawkFile bound /home/yoshi/Downloads/roms/cam_proj_rev/Super Mario 64 (USA).n64
Game was not in DB. CRC: 3CE60709 MD5: 20B854B239203BAF6C961B850A4A51A2
N64
DEBUG CALLBACK 2: No version number in 'Core' config section. Setting defaults.
DEBUG CALLBACK 2: No version number in 'CoreEvents' config section. Setting defaults.
DEBUG CALLBACK 3: Using full mem base
DEBUG CALLBACK 1: Unable to open rom database file '(null)'.
SUCCESS
SUCCESS
DEBUG CALLBACK 3: Goodname: SUPER MARIO 64 (unknown rom)
DEBUG CALLBACK 3: Name: SUPER MARIO 64      
DEBUG CALLBACK 3: MD5: 20B854B239203BAF6C961B850A4A51A2
DEBUG CALLBACK 3: CRC: 635A2BFF 8B022326
DEBUG CALLBACK 3: Imagetype: .z64 (native)
DEBUG CALLBACK 3: Rom size: 8388608 bytes (or 8 Mb or 64 Megabits)
DEBUG CALLBACK 5: ClockRate = F
DEBUG CALLBACK 3: Version: 1444
DEBUG CALLBACK 3: Manufacturer: Nintendo
DEBUG CALLBACK 5: Cartridge_ID: 4D53
DEBUG CALLBACK 3: Country: USA
DEBUG CALLBACK 5: PC = 80246000
DEBUG CALLBACK 5: Save type: 0
SUCCESS
SUCCESS
SUCCESS
SUCCESS
SUCCESS
SUCCESS
DEBUG CALLBACK 2: Input plugin does not contain VRU support.
DEBUG CALLBACK 3: input plugin did not specify a render callback; there will be no on screen display by the input plugin.
SUCCESS
SUCCESS
SUCCESS
SUCCESS
DEBUG CALLBACK 3: Using video capture backend: dummy
DEBUG CALLBACK 3: Using CIC type X102
Attempted to SetVideoMode, width 640, height 480, bpp 0, screenMode WINDOWED, flags SUPPORT_RESIZING
State changed! Param VIDEO_MODE, new value 2
State changed! Param VIDEO_SIZE, new value 41943520
State changed! Param EMU_STATE, new value 2
State changed! Param EMU_STATE, new value 2
DEBUG CALLBACK 3: Initializing 2 RDRAM modules for a total of 4 MB
DEBUG CALLBACK 3: Starting R4300 emulator: Dynamic Recompiler
DEBUG CALLBACK 3: Init new dynarec
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
DebugSourceApi DebugTypeOther DebugSeverityNotification: Buffer detailed info: Buffer object 1 (bound to GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB (0), GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB (1), GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB (2), and GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
reading and enqueuing 320 samples
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
reading and enqueuing 320 samples
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
reading and enqueuing 1120 samples
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
reading and enqueuing 1120 samples
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
reading and enqueuing 1120 samples
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
reading and enqueuing 1120 samples
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
reading and enqueuing 1120 samples
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
reading and enqueuing 1088 samples
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
reading and enqueuing 1056 samples
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
reading and enqueuing 1056 samples
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
reading and enqueuing 1056 samples
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
reading and enqueuing 1056 samples
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
reading and enqueuing 1056 samples
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
reading and enqueuing 1056 samples
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
reading and enqueuing 1056 samples
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
reading and enqueuing 1056 samples
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
reading and enqueuing 1056 samples
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
reading and enqueuing 1056 samples
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
reading and enqueuing 1056 samples
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
reading and enqueuing 1056 samples
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
reading and enqueuing 1056 samples
State changed! Param EMU_STATE, new value 2
SUCCESS
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
reading and enqueuing 1088 samples
entering dispose...
DEBUG CALLBACK 4: Stopping emulation.
State changed! Param EMU_STATE, new value 2
State changed! Param EMU_STATE, new value 2
SUCCESS
DEBUG CALLBACK 3: R4300 emulator finished.
State changed! Param VIDEO_MODE, new value 1
State changed! Param EMU_STATE, new value 1
DEBUG CALLBACK 4: Rom closed.
BizHawk has completed its shutdown routines, killing process...

@Morilli
Copy link
Collaborator Author

Morilli commented Jan 22, 2025

Hmm, those logs look proper, nothing out of the ordinary there. Note that for angrylion-plus, the rsp plugin must be set to cxd4-sse2, otherwise there will be no audio or video.

@YoshiRulz
Copy link
Member

Oh, that fixes it, now I can get in-game and it's almost playable (mostly stable 50 fps).

@CasualPokePlayer
Copy link
Member

Looking at the documentation, it looks like this might be an actual mono bug (maybe mono/mono#14084 ?). Either hybrid (default) or coop values hang for me, just preemptive works without issues.

Looking at how that works, it does somewhat make sense. You have a pure native thread being created (in this case the "render thread"), without the runtime having any knowledge of them (since they weren't made with managed APIs). As such, it doesn't really know of such a thread needing to be suspended for GC purposes. This is all fine, as long as that thread remains in unmanaged land, and thus doesn't touch managed state. Once it tries to come back to managed land (via a callback), things go very poorly.

@YoshiRulz YoshiRulz mentioned this pull request Jan 25, 2025
8 tasks
@Morilli
Copy link
Collaborator Author

Morilli commented Jan 31, 2025

Hm, I did a bit of testing with Donkey Kong 64 and it appears to be a GLideN64 plugin issue rather than a fault of anything in BizHawk, so it's unlikely I'll be able to resolve this. I also get broken video output in the old mupen core with gliden64 (in bizhawk), so it's not really a new regression.

@Morilli
Copy link
Collaborator Author

Morilli commented Feb 3, 2025

This is more or less ready from my side. I want to pull a couple more submodules once they're ready and of course this needs to be rebased, but aside from that the diff should be about final.

Mainly needs more testing now, especially on linux and the parallel video plugin (vulkan).

@YoshiRulz YoshiRulz linked an issue Feb 12, 2025 that may be closed by this pull request
@kimimaru4000

This comment was marked as resolved.

@YoshiRulz

This comment was marked as resolved.

@kimimaru4000
Copy link

kimimaru4000 commented Mar 6, 2025

Thanks! It turns out the only missing SDK was the WindowsDesktop, so I simply copied and pasted the SDK from the official download into the install folder. Not a permanent solution, but good enough for testing this.

On the testing side, I'm currently stuck getting much going on all 3 video plugins.

Video: GLideN64 | RSP: hle
HawkFile bound /home/user/BizHawk/output/gamedb/NesCarts.xml
HawkFile bound /home/user/BizHawk/output/gamedb/mame_machines.txt
MAME Machine DB load: 00:00:00.0247307 sec
Bootgod DB load: 00:00:00.1071705 sec
throttle method: 1; resolution: 10000000
Using SDL2 for host input (keyboard + gamepads)
extra bundled gamedb files were not #included: gamedb_msx1-L.txt, mame_machines.txt, gamedb_msx2-L.txt
GameDB load: 00:00:00.6328893 sec
Connected SDL gamepad, device index 0, instance ID 2, name raphnet technologies Dual N64/N64 to USB v3.6
Connected SDL gamepad, device index 1, instance ID 3, name raphnet technologies Dual N64/N64 to USB v3.6
HawkFile bound /home/user/BizHawk/output/Super Mario 64 (U) [!].z64
Game was not in DB. CRC: 3CE60709 MD5: 20B854B239203BAF6C961B850A4A51A2
N64
WARNING: No version number in 'Core' config section. Setting defaults.
WARNING: No version number in 'CoreEvents' config section. Setting defaults.
INFO: Using full mem base
ERROR: Unable to open rom database file '(null)'.
INFO: Goodname: SUPER MARIO 64 (unknown rom)
INFO: Name: SUPER MARIO 64      
INFO: MD5: 20B854B239203BAF6C961B850A4A51A2
INFO: CRC: 635A2BFF 8B022326
INFO: Imagetype: .z64 (native)
INFO: Rom size: 8388608 bytes (or 8 Mb or 64 Megabits)
VERBOSE: ClockRate = F
INFO: Version: 1444
INFO: Manufacturer: Nintendo
VERBOSE: Cartridge_ID: 4D53
INFO: Country: USA
VERBOSE: PC = 80246000
VERBOSE: Save type: 0
WARNING: Input plugin does not contain VRU support.
INFO: input plugin did not specify a render callback; there will be no on screen display by the input plugin.
INFO: Using video capture backend: dummy
INFO: Using CIC type X102
Attempted to SetVideoMode, width 640, height 480, bpp 0, screenMode WINDOWED, flags SUPPORT_RESIZING
State changed! Param VIDEO_MODE, new value 2
State changed! Param VIDEO_SIZE, new value 41943520
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
State changed! Param EMU_STATE, new value 2
INFO: Initializing 4 RDRAM modules for a total of 8 MB
INFO: Starting R4300 emulator: Dynamic Recompiler
INFO: Init new dynarec
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
Video: paraLLel | RSP: paraLLel
HawkFile bound /home/user/BizHawk/output/gamedb/mame_machines.txt
HawkFile bound /home/user/BizHawk/output/gamedb/NesCarts.xml
MAME Machine DB load: 00:00:00.0201666 sec
Bootgod DB load: 00:00:00.0776444 sec
throttle method: 1; resolution: 10000000
Using SDL2 for host input (keyboard + gamepads)
extra bundled gamedb files were not #included: gamedb_msx1-L.txt, mame_machines.txt, gamedb_msx2-L.txt
GameDB load: 00:00:00.6980595 sec
Connected SDL gamepad, device index 0, instance ID 2, name raphnet technologies Dual N64/N64 to USB v3.6
Connected SDL gamepad, device index 1, instance ID 3, name raphnet technologies Dual N64/N64 to USB v3.6
HawkFile bound /home/user/BizHawk/output/Super Mario 64 (U) [!].z64
Game was not in DB. CRC: 3CE60709 MD5: 20B854B239203BAF6C961B850A4A51A2
N64
WARNING: No version number in 'Core' config section. Setting defaults.
WARNING: No version number in 'CoreEvents' config section. Setting defaults.
INFO: Using full mem base
ERROR: Unable to open rom database file '(null)'.
INFO: Goodname: SUPER MARIO 64 (unknown rom)
INFO: Name: SUPER MARIO 64      
INFO: MD5: 20B854B239203BAF6C961B850A4A51A2
INFO: CRC: 635A2BFF 8B022326
INFO: Imagetype: .z64 (native)
INFO: Rom size: 8388608 bytes (or 8 Mb or 64 Megabits)
VERBOSE: ClockRate = F
INFO: Version: 1444
INFO: Manufacturer: Nintendo
VERBOSE: Cartridge_ID: 4D53
INFO: Country: USA
VERBOSE: PC = 80246000
VERBOSE: Save type: 0
WARNING: Input plugin does not contain VRU support.
INFO: input plugin did not specify a render callback; there will be no on screen display by the input plugin.
INFO: Using video capture backend: dummy
INFO: Using CIC type X102
INFO: Netplay enabled, disabling vsync
Attempted to SetVideoMode, width 640, height 480, bpp 0, screenMode WINDOWED, flags SUPPORT_RESIZING
State changed! Param VIDEO_MODE, new value 2
State changed! Param VIDEO_SIZE, new value 41943520
INFO: Targeting VK_KHR_present_wait latency to 1 frames.
INFO: Layer count: 7
INFO: Found layer: VK_LAYER_VALVE_steam_overlay_32.
INFO: Found layer: VK_LAYER_VALVE_steam_fossilize_64.
INFO: Found layer: VK_LAYER_VALVE_steam_fossilize_32.
INFO: Found layer: VK_LAYER_VALVE_steam_overlay_64.
INFO: Found layer: VK_LAYER_NV_optimus.
INFO: Found layer: VK_LAYER_MANGOHUD_overlay_x86_64.
INFO: Found layer: VK_LAYER_MANGOHUD_overlay_x86.
INFO: Enabling instance extension: VK_KHR_surface.
INFO: Enabling instance extension: VK_KHR_xlib_surface.
INFO: Enabling instance extension: VK_EXT_debug_utils.
INFO: Enabling instance extension: VK_KHR_get_surface_capabilities2.
INFO: Enabling instance extension: VK_EXT_swapchain_colorspace.
INFO: Enabling instance extension: VK_EXT_surface_maintenance1.
INFO: Found Vulkan GPU: NVIDIA GeForce RTX 2060
INFO:     API: 1.4.303
INFO:     Driver: 570.496.256
INFO: Using Vulkan GPU: NVIDIA GeForce RTX 2060
INFO: Enabling device extension: VK_KHR_swapchain.
INFO: Enabling device extension: VK_KHR_external_semaphore_fd.
INFO: Enabling device extension: VK_KHR_external_memory_fd.
INFO: Enabling device extension: VK_EXT_calibrated_timestamps.
INFO: Enabling device extension: VK_EXT_conservative_rasterization.
INFO: Enabling device extension: VK_NV_compute_shader_derivatives.
INFO: Enabling device extension: VK_EXT_memory_priority.
INFO: Enabling device extension: VK_EXT_memory_budget.
INFO: Enabling device extension: VK_EXT_pageable_device_local_memory.
INFO: Enabling device extension: VK_NV_device_generated_commands.
INFO: Enabling device extension: VK_NV_device_generated_commands_compute.
INFO: Enabling device extension: VK_NV_descriptor_pool_overallocation.
INFO: Enabling device extension: VK_EXT_mesh_shader.
INFO: Enabling device extension: VK_EXT_index_type_uint8.
INFO: Enabling device extension: VK_EXT_external_memory_host.
INFO: Enabling device extension: VK_KHR_fragment_shader_barycentric.
INFO: Enabling device extension: VK_KHR_push_descriptor.
INFO: Enabling device extension: VK_KHR_present_id.
INFO: Enabling device extension: VK_KHR_present_wait.
INFO: Enabling device extension: VK_EXT_swapchain_maintenance1.
INFO: Using present mode: 0.
INFO: Current transform is enum 0x1.
INFO: Supported transform 0x1: IDENTITY_BIT_KHR.
INFO: Swapchain current extent: 640 x 480
INFO: Targeting 3 swapchain images.
INFO: Created swapchain 640 x 480 (fmt: 44, transform: 1).
INFO: Got 3 swapchain images.
WARNING: Current NVIDIA driver is known to be slightly faster without 8/16-bit integer arithmetic.
State changed! Param EMU_STATE, new value 2
State changed! Param EMU_STATE, new value 2
INFO: Initializing 4 RDRAM modules for a total of 8 MB
INFO: Starting R4300 emulator: Dynamic Recompiler
INFO: Init new dynarec
State changed! Param EMU_STATE, new value 3
State changed! Param EMU_STATE, new value 2
State changed! Param EMU_STATE, new value 3
State changed! Param EMU_STATE, new value 2
State changed! Param EMU_STATE, new value 3
State changed! Param EMU_STATE, new value 2
State changed! Param EMU_STATE, new value 3
State changed! Param EMU_STATE, new value 2
State changed! Param EMU_STATE, new value 3
State changed! Param EMU_STATE, new value 2
State changed! Param EMU_STATE, new value 3
State changed! Param EMU_STATE, new value 2
State changed! Param EMU_STATE, new value 3
State changed! Param EMU_STATE, new value 2
State changed! Param EMU_STATE, new value 3
State changed! Param EMU_STATE, new value 2
State changed! Param EMU_STATE, new value 3
State changed! Param EMU_STATE, new value 2
State changed! Param EMU_STATE, new value 3
State changed! Param EMU_STATE, new value 2
State changed! Param EMU_STATE, new value 3
Video: angrylion-plus | RSP: cxd4
HawkFile bound /home/user/BizHawk/output/gamedb/mame_machines.txt
HawkFile bound /home/user/BizHawk/output/gamedb/NesCarts.xml
MAME Machine DB load: 00:00:00.0295808 sec
Bootgod DB load: 00:00:00.0956510 sec
throttle method: 1; resolution: 10000000
Using SDL2 for host input (keyboard + gamepads)
extra bundled gamedb files were not #included: gamedb_msx1-L.txt, mame_machines.txt, gamedb_msx2-L.txt
GameDB load: 00:00:00.6492538 sec
Connected SDL gamepad, device index 0, instance ID 2, name raphnet technologies Dual N64/N64 to USB v3.6
Connected SDL gamepad, device index 1, instance ID 3, name raphnet technologies Dual N64/N64 to USB v3.6
HawkFile bound /home/user/BizHawk/output/Super Mario 64 (U) [!].z64
Game was not in DB. CRC: 3CE60709 MD5: 20B854B239203BAF6C961B850A4A51A2
N64
WARNING: No version number in 'Core' config section. Setting defaults.
WARNING: No version number in 'CoreEvents' config section. Setting defaults.
INFO: Using full mem base
ERROR: Unable to open rom database file '(null)'.
INFO: Goodname: SUPER MARIO 64 (unknown rom)
INFO: Name: SUPER MARIO 64      
INFO: MD5: 20B854B239203BAF6C961B850A4A51A2
INFO: CRC: 635A2BFF 8B022326
INFO: Imagetype: .z64 (native)
INFO: Rom size: 8388608 bytes (or 8 Mb or 64 Megabits)
VERBOSE: ClockRate = F
INFO: Version: 1444
INFO: Manufacturer: Nintendo
VERBOSE: Cartridge_ID: 4D53
INFO: Country: USA
VERBOSE: PC = 80246000
VERBOSE: Save type: 0
WARNING: Input plugin does not contain VRU support.
INFO: input plugin did not specify a render callback; there will be no on screen display by the input plugin.
INFO: Using video capture backend: dummy
INFO: Using CIC type X102
Attempted to SetVideoMode, width 640, height 480, bpp 0, screenMode WINDOWED, flags SUPPORT_RESIZING
State changed! Param VIDEO_MODE, new value 2
State changed! Param VIDEO_SIZE, new value 41943520
INFO: vdac_init: GL_VERSION='4.6 (Compatibility Profile) Mesa 24.3.4-arch1.1'
INFO: vdac_init: GL_VENDOR='Intel'
INFO: vdac_init: GL_RENDERER='Mesa Intel(R) UHD Graphics 630 (CFL GT2)'
INFO: vdac_init: GL_SHADING_LANGUAGE_VERSION='4.60'
State changed! Param EMU_STATE, new value 2
State changed! Param EMU_STATE, new value 2
INFO: Initializing 4 RDRAM modules for a total of 8 MB
INFO: Starting R4300 emulator: Dynamic Recompiler
INFO: Init new dynarec
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
INFO: vdac_write: resized framebuffer texture: 640x240
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.
State changed! Param EMU_STATE, new value 2
SwapBuffers was called.
State changed! Param EMU_STATE, new value 3
SwapBuffers was called.

All tested with Super Mario 64, Banjo-Tooie, and Super Smash Bros. Only Super Smash Bros. loaded at all and only on angrylion-plus/cxd4 when launching BizHawk with my discrete GPU as the preferred graphics device. It seems like any scene transition breaks it. Ex. Super Smash Bros. doesn't get to the main menu if I cancel the N64 startup logo early, but if I let the N64 startup logo play in full it'll never even get to the title screen.

My DE is KDE Plasma 6.3.2.

@Morilli
Copy link
Collaborator Author

Morilli commented Mar 6, 2025

@kimimaru4000 I've rebased, could you try again now?

@kimimaru4000
Copy link

What a world of difference! All the games are working great now and run at full speed on my machine with different combinations of settings 👍 Awesome work!

@XenoWars
Copy link

XenoWars commented Mar 6, 2025

If it's not already, I would suggest allowing an option, or just having it always do it, to load the shaders before the game starts. I've been testing this build for the last few hours with OOTMM and noticed a bit of stuttering whenever I load into new areas, something that earlier versions of Bizhawk and PJ64 don't get. Earlier versions of Bizhawk I noticed have a "Texture Save Cache" option with GlideN64 which seems to be what is affecting it on those since I disabled it and started getting the stuttering. PJ64 has an option to store the compiled shaders which disabling that also yielded the stuttering I would get on this newest Bizhawk build.

@Morilli
Copy link
Collaborator Author

Morilli commented Mar 6, 2025

If it's not already, I would suggest allowing an option, or just having it always do it, to load the shaders before the game starts. I've been testing this build for the last few hours with OOTMM and noticed a bit of stuttering whenever I load into new areas, something that earlier versions of Bizhawk and PJ64 don't get. Earlier versions of Bizhawk I noticed have a "Texture Save Cache" option with GlideN64 which seems to be what is affecting it on those since I disabled it and started getting the stuttering. PJ64 has an option to store the compiled shaders which disabling that also yielded the stuttering I would get on this newest Bizhawk build.

Hm, while I don't currently expose shader cache or texture cache options, both of these should be enabled by default. I'm not sure what could be going wrong there.

@Jj0YzL5nvJ
Copy link

I've been testing this build for the last few hours with OOTMM and noticed a bit of stuttering whenever I load into new areas, something that earlier versions of Bizhawk and PJ64 don't get.

The culprit is most likely dual source blending...
See: gonetz/GLideN64#2749 (comment)

@kimimaru4000
Copy link

kimimaru4000 commented Mar 7, 2025

What a world of difference! All the games are working great now and run at full speed on my machine with different combinations of settings 👍 Awesome work!

Ah okay I forgot to mention that Banjo-Tooie actually wasn't working well with GLideN64. There's a flickering duped render of the whole game on the bottom left. Also, no matter the video backend I can't get the game to recognize the controller whereas the other games are working fine.

BanjoTooieBizHawkLinux.mp4

But overall much more progress after the rebase.

@flagrama
Copy link

flagrama commented Mar 7, 2025

Also, no matter the video backend I can't get the game to recognize the controller whereas the other games are working fine.

This is somewhat expected. That's one of the anti-piracy measures in BT. Someone needs to make sure the save type is set to the correct 2Kb EEPROM for the game.

@JustNeoXYZ
Copy link

What's the status on Lua support with this? (for Multiworld Randos, etc.)
I tried running a connector script that works with release BizHawk, but fails on the nightly build here.
image
(Thank you so much for making Linux BizHawk N64 actually usable btw <3)

@Morilli
Copy link
Collaborator Author

Morilli commented Dec 21, 2025

What's the status on Lua support with this? (for Multiworld Randos, etc.) I tried running a connector script that works with release BizHawk, but fails on the nightly build here

That sounds like it requires a specific patched rom that you aren't using, not related to the core. Does that work with ares?

@JustNeoXYZ
Copy link

This is the correct rando ROM though, hence the version number in the corner that matches the one in the Lua output.

Exact same ROM/script combo works on the Ares core (albeit running super slow because Ares), and it also works on Mupen with the current release build of BizHawk (Windows release ran thru Wine).
Screenshot_20251221_152113

My assumption was that Lua support just wasn't finished yet on this branch, which is fine, but I wanted to ask and make sure.

(The reported "vanilla ROM" error is because (i think, probably wrong) it's looking for a pointer that only exists in the patched rando ROM, and can't find it due to not being able to read memory at all.)

useful when the underlying data is actually stored in opposite endianness from what the memory domain "should be".

Could probably replace MemoryDomainIntPtrSwap16/MemoryDomainIntPtrSwap16Monitor with this while we're at it.
@Morilli
Copy link
Collaborator Author

Morilli commented Dec 24, 2025

@JustNeoXYZ the issue was that the memory domain implementation declared big endian byte order while the underlying data was stored in little endian. I've fixed the code to support this now, so all memory reads and writes should now return correct values. This should allow the lua script to work properly.

@JustNeoXYZ
Copy link

image Tested and it works perfectly! Thank you so much!

@JustNeoXYZ
Copy link

...never mind then, apparently it can't read ROM domains for N64
image

might need to add more that were previously present too, will have to see what's relevant
@JustNeoXYZ
Copy link

Screenshot_20251225_040035 And that fixes it! Thank you so much (again)!

@ahhh-reptar
Copy link

ahhh-reptar commented Dec 25, 2025

This only launches games in Ares for me still. That being said, BizHawk won't launch at all on my Steam Deck unless I run it through a distrobox, which may have something to do with this.

Here's the guide I followed, I just changed the username to my own: https://gist.github.com/SpenserHaddad/417a772aea5be99d563fe73295bb62fb

@Morilli
Copy link
Collaborator Author

Morilli commented Dec 25, 2025

@ahhh-reptar the linux binaries are currently compiled by me on an ubuntu 24.04 system with GLIBC 2.39, so if your glibc version is older than that then the binaries may fail to load. You can set the DontTryOtherCores option in the config.ini to true to force-disable the core fallback logic and see what the actual load error is.

@ahhh-reptar
Copy link

Screenshot_20251225_071504

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet