korenkonder / DivaGL

18 stars 1 forks source link

Playing with Mesa OpenGL drivers on Windows #7

Open shirok1 opened 4 months ago

shirok1 commented 4 months ago

Not an actual issue, just something interesting to play with. I see that Mesa is providing GLonD3D12 and Zink (GL on Vulkan). I downloaded Mesa OpenGL drivers from https://github.com/pal1000/mesa-dist-win/releases/tag/24.1.1 (notice that 24.0.9 should be used since they broke it in 24.1), extracted these files:

Beside diva.exe. Then launch the game as usual. A wrapper device should be showing in GPU Info:

Screenshot

To switch between drivers (backends), use GALLIUM_DRIVER environment variable. Possible values: d3d12, zink, llvmpipe (CPU backend)

Unfortunately, performance statistic OSD is not quite working on my machine, so I won't be able to prove if this worth a try when GPU vendor provided a poor GL driver (not my case, I'm running an NVIDIA Ampere). But solely from frame rate perspective, I can see that Zink only loss about 2 to 3 frames and GLonD3D12 is even on a pair with stock driver. Would you like to test it out?

galax20002 commented 3 months ago

Hi i tested what you wrote. with just extracting the named dll the game instant crashes. by extracting everythign the game boots but idk where to change the variables. i use a amd igpu and find a way to get videos working on it and would also test if this gives better performance since amd has a pretty bad opengl support

shirok1 commented 3 months ago

Hi i tested what you wrote. with just extracting the named dll the game instant crashes. by extracting everythign the game boots but idk where to change the variables. i use a amd igpu and find a way to get videos working on it and would also test if this gives better performance since amd has a pretty bad opengl support

Maybe you can provide some log? Run the laucher in terminal (and maybe with the parameter that make the game itself launch immediately). Even the launcher window will provide some useful information, copy the text or screenshot.

shirok1 commented 3 months ago

Plus are you using the cutting edge PD Loader build? https://github.com/PDModdingCommunity/PD-Loader/wiki/Latest-test-build P.S. @korenkonder it would be better to leave a link to the test build and give out some common bug for the stable releases

korenkonder commented 3 months ago

give out some common bug for the stable releases

What do you mean by that?

shirok1 commented 3 months ago

give out some common bug for the stable releases

What do you mean by that?

Glitches like #2. I personally also only get DivaGL working after switch to test builds of PDL (but I don't remember the detail of tweaking so I'm not 100% sure whether test builds are actually necessary).

(And by "leave a link" I mean in readme)

galax20002 commented 3 months ago

Hi i tested what you wrote. with just extracting the named dll the game instant crashes. by extracting everythign the game boots but idk where to change the variables. i use a amd igpu and find a way to get videos working on it and would also test if this gives better performance since amd has a pretty bad opengl support

Maybe you can provide some log? Run the laucher in terminal (and maybe with the parameter that make the game itself launch immediately). Even the launcher window will provide some useful information, copy the text or screenshot.

ok i have done that

[DivaGL] Current version - v0.7.0.1 [DivaGL] Attach [DivaGL] Patching memory [DivaImGui] Initializing hooks... [DivaImGui] AFT v7.10 [DivaImGui] wGlGetProcAddress=00007FFD83001140 [DivaImGui] Using MinHook [DivaImGui] Hooks initialized [Mix Edition] Deleting old patches... [Mix Edition] Renaming mod folder... Das System kann die angegebene Datei nicht finden.[Mix Edition] Applying patches... [Mix Edition] Language patches... [Mix Edition] Difficulty... [Mix Edition] Bgm select... [Mix Edition] Cover text color... [Mix Edition] Installing another_song hooks... [Mix Edition] Disable extended data/osage_play_data... [Mix Edition] Done!... [Patches] Game version 7.10 [Patches] Stereo patch enabled [Patches] Gamma: 1.250000 [Patches] Show FREE PLAY instead of CREDIT(S) [Patches] Cursor enabled [Patches] Status icons hidden [Patches] PV watermark hidden [Patches] Volume control hidden [Patches] Enhanced Stage Manager enabled [Patches] Refraction resolution patched. [Patches] Reflection resolution patched. [Patches] Shadow resolution patched. [Patches] Lag Compensation: 0.001000 [Patches] Patches applied [Patches] Reading custom patches... [Patches] Skipping disabled patch file: boot_game_name_changer.p [Patches] Skipping disabled patch file: cheat_mode.p [Patches] Reading custom patch file: custom_freeplay_text_example.p [Patches] Enable FREE PLAY [Patches] Custom FREE PLAY text [Patches] Patching: 1409f61f0:!Galax2000 [Patches] Custom text colour [Patches] Patching: 1401964a2:0 ff ff 7f [Patches] Skipping disabled patch file: Downloads - Verkn³pfung.lnk [Patches] Reading custom patch file: jay's english patch.p [Patches] English Strings Patch for PD Loader v1.1 [Patches] Changes various strings into English. [Patches] Patching attract screen errors... [Patches] Patching: 1409f62a0:!IC card or mobile phone cannot be used. on this system. [Patches] Patching: 1409f62c7:0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [Patches] Patching: 1409f62e8:!Touch screen panel cannot be used. [Patches] Patching: 1409f630a:0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [Patches] Patching: 1409f6320:!Touch slider cannot be used. [Patches] Patching: 1409f633c:0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [Patches] Patching: 1409f6360:!Photo studio cannot be used. [Patches] Patching: 1409f637c:0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [Patches] Patching: 1409f63a0:!Due to maintenance, IC card or mobile phone cannot be used. [Patches] Patching: 1409f63dc:0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [Patches] Patching: 1409f6407:!Please wait... [Patches] Patching: 1409f6415:0 0 [Patches] Patching: 1409f6418:0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [Patches] Patching module select strings... [Patches] Patching: 140a001b8:!All Random [Patches] Patching: 140a001c2:0 0 0 0 0 0 0 0 0 0 0 0 [Patches] Patching: 140a001d0:!Hatsune Miku Random [Patches] Patching: 140a001e3:0 0 0 0 0 0 [Patches] Patching: 140a001f0:!Kagamine Rin Random [Patches] Patching: 140a00203:0 0 0 0 0 0 [Patches] Patching: 140a00210:!Kagamine Len Random [Patches] Patching: 140a00223:0 0 0 0 0 0 [Patches] Patching: 140a00230:!Megurine Luka Random [Patches] Patching: 140a00244:0 0 0 0 0 [Patches] Patching: 140a00250:!Akita Neru Random [Patches] Patching: 140a00261:0 0 0 0 0 0 0 0 [Patches] Patching: 140a00270:!Yowane Haku Random [Patches] Patching: 140a00282:0 0 0 0 0 0 0 [Patches] Patching: 140a00290:!Kaito Random [Patches] Patching: 140a0029c:0 0 0 0 0 0 0 0 0 0 [Patches] Patching: 140a002a8:!Meiko Random [Patches] Patching: 140a002b4:0 0 0 0 0 0 0 0 0 0 [Patches] Patching: 140a002c0:!Sakine Meiko Random [Patches] Patching: 140a002d3:0 0 0 0 0 0 0 0 0 [Patches] Patching: 140a002e0:!Kasane Teto Random [Patches] Patching: 140a002f2:0 0 0 0 0 0 0 [Patches] Patching: 140a36140:!Default Item [Patches] Patching: 140a3614c:0 0 0 0 0 0 0 0 0 0 0 0 [Patches] Patching: 140a36160:!Default Item Removed [Patches] Patching: 140a36174:0 0 0 0 [Patches] Patching: 140a3617c:!Not Set [Patches] Patching: 140a36183:0 [Patches] Patching errors... [Patches] Patching: 1409bfa20:!End session [Patches] Patching: 1409bfa2b:a 0 0 0 0 [Patches] Patching: 1409c0b30:!Is this really okay? [Patches] Patching: 1409c0b44:0 0 0 0 0 0 0 0 0 0 0 0 0 [Patches] Patching: 1409c0b90:!Your currently set password [Patches] Patching: 1409c0bab:0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [Patches] Patching: 1409c0bc0:!Please enter it now [Patches] Patching: 1409c0bd3:0 0 0 0 0 [Patches] Patching: 1409c0be0:!Your password must be between 8-12 characters long [Patches] Patching: 1409c0c12:0 0 0 0 [Patches] Patching: 140a30580:!The previous session did not end properly. [Patches] Patching: 140a305aa:0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [Patches] Patching: 140a305c0:!Please wait for a while then try again. [Patches] Patching: 140a305ea:0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [Patches] Patching: 140a36378:!Failed to connect [Patches] Patching: 140a36389:0 0 0 0 0 0 0 0 0 0 [Patches] Patching: 140a36398:!Could not purchase module [Patches] Patching: 140a363b1:0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [Patches] Patching: 140a363d0:!Could not purchase customize item [Patches] Patching: 140a363f1:0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [Patches] Patching: 140a36410:!Could not update the module [Patches] Patching: 140a3642b:0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [Patches] Patching: 140a36440:!table on the server [Patches] Patching: 140a36453:0 0 0 0 0 0 0 0 0 0 0 [Patches] Patching: 140a40288:!Failed to upload the screenshot [Patches] Patching: 140a402a7:0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [Patches] Patching: 140a402c0:!Upload complete [Patches] Patching: 140a402cf:0 0 0 0 0 0 0 0 [Patches] Patching: 140a402e0:!The upload may have failed [Patches] Patching: 140a402fa:0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [Patches] Patching: 140a40310:!You may upload %d more screenshot(s) [Patches] Patching: 140a40334:0 0 0 0 0 [Patches] Patching: 140a40340:!Finish without uploading [Patches] Patching: 140a40358:0 0 0 0 0 0 [Patches] Patching: 140a40360:!End session [Patches] Patching: 140a4036b:0 0 0 0 [Patches] Patching: 140a8b390:!Printer error. Please call the staff [Patches] Patching: 140a8b3b4:0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [Patches] Patching contest strings... [Patches] Patching: 140a31b98:!%d Total Stages [Patches] Patching: 140a31ba7:0 0 [Patches] Patching: 140a31bc0:!Personal Best [Patches] Patching: 140a31bcd:0 0 [Patches] Patching: 140a31b08:!Availability [Patches] Patching: 140a31b40:0 0 0 0 0 0 [Patches] Patching: 140a33510:!Only %.2f % to clear [Patches] Patching: 140a33524:0 0 0 0 [Patches] Patching: 140a33530:!Only %d pts to clear [Patches] Patching: 140a33544:0 0 [Patches] Patching: 140a33660:!Total Ratio [Patches] Patching: 140a3366b:0 0 0 0 [Patches] Patching: 140a33670:!COOL Ratio [Patches] Patching: 140a3367a:0 0 0 [Patches] Patching: 140a33680:!Current Score [Patches] Patching: 140a3368d:0 0 0 0 0 [Patches] Patching: 140a3f058:!Available until [Patches] Patching: 140a3f067:0 0 0 [Patches] Patching: 140a3f070:!Available until [Patches] Patching: 140a3f07f:0 0 0 [Patches] Reading custom patch file: more_edit_effects.p [Patches] Allow more edit effects [Patches] Patching: 140106e04:ff [Patches] All custom patches applied [Render] Custom internal resolution enabled [Render] X: 1920 Y: 1080 [Sprite Draw Limit] Current version - v0.1.0.0 [Sprite Draw Limit] Attach [Sprite Draw Limit] Patching memory [TLAC] DllMain(): Installing hooks... [Render Manager] Game mode (exclusive fullscreen) enabled. 1920x1080:32@60 [DivaSound] Output config: WASAPI 2ch 32bit [DivaSound] Output buffer size: 3840 (80ms at 48000Hz) [DivaSound] Buffer periods: 8 [DivaSound] PDAFT buffer size: 3528 (80ms at 44100Hz) [DivaSound] Created internal audio mixer [DivaSound] Started playback [TLAC] WindowMessageDispatcher(): Entering message loop... [Fast Loader] Speed: 20 [TLAC] DebugComponent::Initialize(): Initialized [DivaImGui] Hooking glBindProgramARB=00007FFD82F49C20 [DivaImGui] Hooking glGetError=00007FFD83002950 [DivaImGui] Using render.dva FPS Limit. [DivaImGui] Using GLEW 2.1.0 [DivaImGui] Patched 0 Shaders [EffModules] mdata/MX11/rom/eff_module_db.txt 0.208.obj=4096 0.208.mesh=0 0.208.1.bone=15,j_tail_l_013_wj 0.208.2.bone=15,j_tail_r_013_wj 0.211.obj=4099 0.211.mesh=0 0.211.1.bone=15,j_tail_l_013_wj 0.211.2.bone=15,j_tail_r_013_wj [TLAC] FastLoader::Update(): Data Initialized

grafik