• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 … 413 414 415 416 417 … 1206 Next »

Question about shader cache
View New Posts | View Today's Posts

Pages (3): 1 2 3 Next »
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Question about shader cache
08-21-2014, 02:36 AM (This post was last modified: 08-21-2014, 02:44 AM by Saint Chewy.)
#1
Saint Chewy Offline
Member
***
Posts: 58
Threads: 8
Joined: Jun 2014
First off I would like to apologize for making this thread. I did try and search for this topic but didnt really turn up with a conclusive answer. I think this is where all my woes are coming from.

So now basically what I would like to know, is how does it work? From my understanding (which is limited so sorry if I am wrong) is that you need to play a game once to build up the shader cache. Okay got that. Now where I get confused is how does the shader cache work once its built? Does it work for the entire game? Or does it only work for certain assets? Does it rebuild it self every time I open the game? Could it be causing problems because its not in the same HDD as dolphin? Which would be strange because technically, the Shade Cache folder is in my SSD...

For example playing Super Smash Bros. Brawl if I play on a new map I get massive stutter and fps drops. But yet if I play on a map earlier it will play for the most part okay. Another example is on Wind Waker. If I got into a new dungeon or room I will get a brief stutter. If I open a chest (sometimes) I will get a stutter. Sailing, I always randomly will get a stutter its never in the same spot its just random. Is this the work of the shader cache not working? I have the shade caches built (see pic) or what could it be? Is this considered NORMAL??

If this is the case, does that mean I would have to pretty much complete a game the first time with stuttering just so that the second time playing is smooth? Again sorry for posting this I just would like to have my games play perfectly and hopefully I will have a better understanding of this.


Attached Files Thumbnail(s)
   
Cpu- i7 7700k oc @ 4.6 ghz
Gpu- Nvidia GTX 1080 ti @ 2025 mhz
Ram- Corsair Dominator DDR4 16gb @ 3200 mhz
OS- Windows 10 x64
Dolphin revision- 5.0-5132
Find
Reply
08-21-2014, 03:37 AM
#2
JMC47 Offline
Content Producer
*******
Content Creators (Moderators)
Posts: 6,565
Threads: 31
Joined: Feb 2013
It's unavoidable currently; it's the GPU itself taking forever and stalling.
Find
Reply
08-21-2014, 05:03 AM
#3
Saint Chewy Offline
Member
***
Posts: 58
Threads: 8
Joined: Jun 2014
(08-21-2014, 03:37 AM)JMC47 Wrote: It's unavoidable currently; it's the GPU itself taking forever and stalling.

So its my gpu that causing my stuttering and not the shader cache? I set my gpu to maximum performance under the nvidia control panel and I monitor my clock speed and it never drops.
Cpu- i7 7700k oc @ 4.6 ghz
Gpu- Nvidia GTX 1080 ti @ 2025 mhz
Ram- Corsair Dominator DDR4 16gb @ 3200 mhz
OS- Windows 10 x64
Dolphin revision- 5.0-5132
Find
Reply
08-21-2014, 05:06 AM
#4
JMC47 Offline
Content Producer
*******
Content Creators (Moderators)
Posts: 6,565
Threads: 31
Joined: Feb 2013
It doesn't matter if the clock drops, any GPU will do this because they're just inefficient at this.
Find
Reply
08-21-2014, 05:20 AM
#5
Saint Chewy Offline
Member
***
Posts: 58
Threads: 8
Joined: Jun 2014
Okay so is the gpu controlling the shader cache then or does the shader cache have nothing to do with this? Sorry I am just a little confused.
Cpu- i7 7700k oc @ 4.6 ghz
Gpu- Nvidia GTX 1080 ti @ 2025 mhz
Ram- Corsair Dominator DDR4 16gb @ 3200 mhz
OS- Windows 10 x64
Dolphin revision- 5.0-5132
Find
Reply
08-21-2014, 05:22 AM
#6
JMC47 Offline
Content Producer
*******
Content Creators (Moderators)
Posts: 6,565
Threads: 31
Joined: Feb 2013
I'm not really a GPU guy, I could be messing up the explanation totally. The point is, when the shaders are generated, it stutters because our computers can't keep up. The actual gamecube/wii didn't have any need to do this because native console. The reason we cache the shaders is so that next time it runs into that shader, is just loads it and there's no stuttering.
Find
Reply
08-21-2014, 05:31 AM
#7
Saint Chewy Offline
Member
***
Posts: 58
Threads: 8
Joined: Jun 2014
Its okay I appreciate the explanation. So is it possible to eliminate the stutter entirely or basically it is normal to get that stutter then? Because if that is the case I am not sure I understand why I get the stuttering when I am sailing on WW. The sea uses the same textures and so do the crows nests that pop up. But if this is normal I wont spend hours trying to tweak it Big Grin Another question I had, is that I did read on here somewhere that an idea was thrown around about uploading a shader cache for games and then you could download them individually. Would that work at all for future dolphin updates?
Cpu- i7 7700k oc @ 4.6 ghz
Gpu- Nvidia GTX 1080 ti @ 2025 mhz
Ram- Corsair Dominator DDR4 16gb @ 3200 mhz
OS- Windows 10 x64
Dolphin revision- 5.0-5132
Find
Reply
08-18-2015, 04:24 AM (This post was last modified: 08-18-2015, 04:33 AM by barat.)
#8
barat Offline
Member
***
Posts: 86
Threads: 4
Joined: Aug 2015
Well - Im just reading about this also. It's not that easy to just copy/paste the cache because each combination of cpu/gpu/os/dolphin may generate them little different.
I don't know how it works in emulator world, but in PHP (Symfony/Doctrine) we just have cache warmup/proxy generation etc. But I don't think that with games it's possible to do it like this without actually play game triggering shaders...
Windows 11 Pro| Gigabyte x570 Aorus pro | 5800x3d | 2x16GB 3600cl14 |Gigabyte RTX 2080 8GB Gaming OC | Wii Bluetooth Module (WML-C43)
2x Wii Remote RVL-CNT-01 with MotionPlus | 2x Xbox One controller
Find
Reply
08-18-2015, 04:40 AM
#9
Fiora Offline
x86 JIT Princess
**********
Developers (Some Administrators and Super Moderators)
Posts: 237
Threads: 0
Joined: Aug 2014
Shader compilation is done on the CPU, not on the GPU. But it's not under control of Dolphin.
Website Find
Reply
08-18-2015, 07:08 AM (This post was last modified: 08-18-2015, 07:09 AM by mbc07.)
#10
mbc07 Offline
Wiki Caretaker
*******
Content Creators (Moderators)
Posts: 3,619
Threads: 47
Joined: Dec 2010
I've been thinking about that for a while; from what I read, uber shader + async would be the best solution but it requires tons of work. As far as I know, the only requirement to compile a shader is it's source code, right? Dolphin already caches the shader in binary form, but because of that it's tied to that specific GPU/driver used during the compile time. What about adding an option to dump shader source code and another option to "pre compile" those shader dumps, would that be feasible? That way we could distribute packs of shader sources of a particular game, the user would download that pack somewhere and compile them ahead of time (that's what PC games do, isn't?) to prevent stuttering...
Avell A70 MOB: Core i7-11800H, GeForce RTX 3060, 16 GB DDR4-3200, Windows 11 (Insider Preview)
ASRock Z97M OC Formula: Pentium G3258, GeForce GT 440, 16 GB DDR3-1600, Windows 10 (22H2)
Find
Reply
« Next Oldest | Next Newest »
Pages (3): 1 2 3 Next »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma