mupen64plus-core
mupen64plus-core copied to clipboard
Compiling using makefile generates slow executable
I'm compiling on windows using standard msys/mingw tools and I noticed that compiling the core using the makefile actually results in a slower executable than by using the provided vcxproj and compiling with MSVC tools.
I compiled both using no modifications to the provided files, aka standard (release|x64) build for the vcxproj and a simple make all for the makefile.
Some data: Using the makefile with gcc: ~33fps Using the vcxproj with MSVC: ~75fps Using the vcxproj with clang-cl (from mingw): ~55fps
I tested this with the provided 2.6.0 bundle and the GlideN64 video plugin (to get fps display) and replacing the core dll with the respective compilation outputs. I also set the core type to Cached Interpreter for this test.
There is no way that
- msvc actually generates faster code than gcc
- a compiler generates code that is more than twice as fast as another
Any ideas on what could be causing this difference? I find it very hard to believe that msvc actually just compiles that much faster code.