Welcome, Guest.
Username: Password: Remember me

TOPIC: Reshade 10s delay on launch/exit

Reshade 10s delay on launch/exit 1 year 6 months ago #1

When I added Reshade to mame emulator it added a 10 seconds delay to launch and exit of mame. Is it normal?
The administrator has disabled public write access.

Reshade 10s delay on launch/exit 1 year 6 months ago #2

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.
Cheers, crosire =)
The administrator has disabled public write access.

Reshade 10s delay on launch/exit 1 year 6 months ago #3

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?
The administrator has disabled public write access.

Reshade 10s delay on launch/exit 1 year 6 months ago #4

If it's the reason for the delay, then yes.
Cheers, crosire =)
The administrator has disabled public write access.

Reshade 10s delay on launch/exit 1 year 6 months ago #5

With only CRT shader the delay is still there.
The administrator has disabled public write access.

Reshade 10s delay on launch/exit 1 year 6 months ago #6

Here is my log file
d3d9.log
The administrator has disabled public write access.

Reshade 10s delay on launch/exit 1 year 6 months ago #7

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?
Last Edit: 1 year 6 months ago by oomek.
The administrator has disabled public write access.

Reshade 10s delay on launch/exit 1 year 6 months ago #8

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?
The administrator has disabled public write access.

Reshade 10s delay on launch/exit 1 year 6 months ago #9

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.
Cheers, crosire =)
The administrator has disabled public write access.

Reshade 10s delay on launch/exit 1 year 6 months ago #10

I do not have any overlay app running. Can you please try groovymame 0.171 and set video variable in mame.ini to d3d9ex?
The administrator has disabled public write access.

Reshade 10s delay on launch/exit 1 year 6 months ago #11

The delay is present in any version of groovymame and regardless of video mode selected. Can I disable opengl hooking somehow?
The administrator has disabled public write access.

Reshade 10s delay on launch/exit 1 year 6 months ago #12

oomek wrote:
Can I disable opengl hooking somehow?
No, nor should it make a difference. The hooking alone is not the issue here.
Cheers, crosire =)
Last Edit: 1 year 6 months ago by crosire.
The administrator has disabled public write access.

Reshade 10s delay on launch/exit 1 year 6 months ago #13

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.
The administrator has disabled public write access.

Reshade 10s delay on launch/exit 1 year 6 months ago #14

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.
Cheers, crosire =)
Last Edit: 1 year 6 months ago by crosire.
The administrator has disabled public write access.

Reshade 10s delay on launch/exit 1 year 6 months ago #15

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.
The administrator has disabled public write access.

Reshade 10s delay on launch/exit 1 year 6 months ago #16

I guess it's a "no" :(
The administrator has disabled public write access.