Reshade 10s delay on launch/exit

  • Posts: 11
3 years 4 months ago #1 by oomek
When I added Reshade to mame emulator it added a 10 seconds delay to launch and exit of mame. Is it normal?

Please Log in or Create an account to join the conversation.

  • Posts: 3669
3 years 4 months ago #2 by crosire
Yes. Shaders need to load at some point and depending on your system specs, this can take a while. You'll see a notifcation at the top of the screen about this though.

Please Log in or Create an account to join the conversation.

  • Posts: 11
3 years 4 months ago #3 by oomek
Hm, I do not see any info about the delay. I need to mention that the delay happens before the mame window opens. I need only one shader. If i delete all other shaders from the folders will that speed up?

Please Log in or Create an account to join the conversation.

  • Posts: 3669
3 years 4 months ago #4 by crosire
If it's the reason for the delay, then yes.

Please Log in or Create an account to join the conversation.

  • Posts: 11
3 years 4 months ago #5 by oomek
With only CRT shader the delay is still there.

Please Log in or Create an account to join the conversation.

  • Posts: 11
3 years 4 months ago #6 by oomek
Here is my log file
d3d9.log

Please Log in or Create an account to join the conversation.

  • Posts: 11
3 years 4 months ago - 3 years 4 months ago #7 by oomek
The delay starts here:
12/11/2016 15:46:51:235 [08392] | INFO  | > Found 360 match(es). Installing ...
12/11/2016 15:46:51:235 [08392] | INFO  | Installing hook for '0x00007FF81299DFE0' with '0x00007FF80F86EB70' using method 1 ...
and it lasts for 15 seconds installing 360 hooks. Why there is so many hooks?

Please Log in or Create an account to join the conversation.

  • Posts: 11
3 years 4 months ago #8 by oomek
looks like all that hooks are related to opengl, but I'm running mame in d3d9ex mode. Is there any way to skip opengl hooking?

Please Log in or Create an account to join the conversation.

  • Posts: 3669
3 years 4 months ago #9 by crosire
Must be something specific to your configuration. I just tried it and have no delay whatsoever. Make sure no third-party software like overlays or game boosters are interfering.

Please Log in or Create an account to join the conversation.

  • Posts: 11
3 years 4 months ago #10 by oomek
I do not have any overlay app running. Can you please try groovymame 0.171 and set video variable in mame.ini to d3d9ex?

Please Log in or Create an account to join the conversation.

  • Posts: 11
3 years 4 months ago #11 by oomek
The delay is present in any version of groovymame and regardless of video mode selected. Can I disable opengl hooking somehow?

Please Log in or Create an account to join the conversation.

  • Posts: 3669
3 years 4 months ago - 3 years 4 months ago #12 by crosire

oomek wrote: Can I disable opengl hooking somehow?

No, nor should it make a difference. The hooking alone is not the issue here.

Please Log in or Create an account to join the conversation.

  • Posts: 11
3 years 4 months ago #13 by oomek
Why do you think hooking is not the issue? According to the log hooking all that unused opengl functions takes 15 seconds on launch and the same when unhooking on exit.

Please Log in or Create an account to join the conversation.

  • Posts: 3669
3 years 4 months ago - 3 years 4 months ago #14 by crosire
I can see that. But the hooking itself is extremly fast. There is something happening between that slows it down. Could be some extensive thread synchronization that your CPU cannot handle if the app is highly multi-threaded. I don't know. I have MAME running under D3D9 on my system, it loads OpenGL too, but without any slowdowns like in your case.

Please Log in or Create an account to join the conversation.

  • Posts: 11
3 years 4 months ago #15 by oomek
Well, beeing fast is really dependant on the hardware. On my HTPC equipped with AMD A4 5000 and Radeon R7 240 it's extremly slow. It would be awesome if you considered people with slow machines and added a simple switch in the ini to disable opengl hooking.

Please Log in or Create an account to join the conversation.

  • Posts: 11
3 years 4 months ago #16 by oomek
I guess it's a "no" :(

Please Log in or Create an account to join the conversation.