#asahi-gpu · 2023-04-15 23:26
alyssawhich forces overdraw to get serialized... shouldn't be too hard to sink the load down, I think#asahi-gpu · 2023-04-15 23:26
alyssabecause they're reading gl_FragColor right at the top and then don't use it until the bottom#asahi-gpu · 2023-04-15 23:26
alyssaI wonder how much ubershaders are getting hurt by the serialization of the fragment shaders#asahi-gpu · 2023-04-15 23:25
alyssa(our gles specialized is sitill not up to metal -- 60fps vs 100fps -- though maybe some of those differences are within dolphin? maybe?)#asahi-gpu · 2023-04-15 23:24
alyssaneedle doesn't move for ubershaders since I guess those aren't bandwidth bound#asahi-gpu · 2023-04-15 23:23
alyssafor specialized shaders#asahi-gpu · 2023-04-15 23:23
alyssaso after fixing z/s compression, our gles beats apple's gl#asahi-gpu · 2023-04-15 23:23
alyssa---#asahi-gpu · 2023-04-15 23:22
alyssanative uber: 78fps#asahi-gpu · 2023-04-15 23:22
alyssa4K uber: 4.3fps#asahi-gpu · 2023-04-15 23:22
alyssa4K specialized: 60fps#asahi-gpu · 2023-04-15 23:22
alyssabut forcing it on anyway (Dolphin rendering still seems fine)#asahi-gpu · 2023-04-15 23:21
alyssaOk, I had locally disabled z/s compression since it was causing issues#asahi-gpu · 2023-04-15 23:21
alyssaYep yep#asahi-gpu · 2023-04-15 23:20
TellowKrinkleAhh yeah, Dolphin is 100% array textures#asahi-gpu · 2023-04-15 23:20
alyssa(we weren't compressing array textures before, that won back a ton of perf)#asahi-gpu · 2023-04-15 23:20
TellowKrinkleYou can test that by going to the Metal renderer's texture allocation code and adding the PFV flag there#asahi-gpu · 2023-04-15 23:20
alyssaI got big wins already from compression, yeah#asahi-gpu · 2023-04-15 23:19
alyssaack#asahi-gpu · 2023-04-15 23:19
TellowKrinkleBTW afaik most of the difference between Metal and MVK on macOS is whether we have texture compression enabled or not (at the moment, MVK specifies MTLTextureUsagePixelFormatView on pretty much all textures, which disables that).#asahi-gpu · 2023-04-15 23:19
alyssaTellowKrinkle: Seeing as you wrote the winning backend, any ideas what to look into for dolphin go fast? O:)#asahi-gpu · 2023-04-15 23:17
alyssasome of this (especially ubershader perf) is going to be compiler related, I imagine#asahi-gpu · 2023-04-15 23:15
alyssagiven the different backends involved#asahi-gpu · 2023-04-15 23:15
alyssait's not 100% clear to me if this is apples to apples (no pun intended)#asahi-gpu · 2023-04-15 23:15
alyssasomewhere between 2x to 3x slower on this workload, though#asahi-gpu · 2023-04-15 23:15
alyssaat least it's not 10x slower...#asahi-gpu · 2023-04-15 23:14
alyssaso... we have a lot of work to go still :|#asahi-gpu · 2023-04-15 23:14
alyssa3. native uber is not worth quantifying since macos is hitting the 120fps cap here on all backends, we need to be 50% faster to do the same#asahi-gpu · 2023-04-15 23:13
alyssa2. 4K uber is a bit less than half of Apple's GL driver and a bit more than a third of what it should be (Metal)#asahi-gpu · 2023-04-15 23:13
alyssa1. 4K specialized perf is slightly behind Apple's GL driver, and about half what it should be (Metal backend)#asahi-gpu · 2023-04-15 23:11
alyssaso... we have work to do.#asahi-gpu · 2023-04-15 23:11
alyssa---------------------#asahi-gpu · 2023-04-15 23:11
alyssanative uber: 78fps#asahi-gpu · 2023-04-15 23:10
alyssa4K uber: 4.3fps#asahi-gpu · 2023-04-15 23:10
alyssa4K specialized: 47fps#asahi-gpu · 2023-04-15 23:10
alyssaOver on agx/next, GLES backend#asahi-gpu · 2023-04-15 23:09
alyssa--------------------------------#asahi-gpu · 2023-04-15 23:01
alyssa4K exclusive: 10fps#asahi-gpu · 2023-04-15 23:01
alyssa4K specialized: 54fps#asahi-gpu · 2023-04-15 23:00
alyssanative ubershaders: 120fps#asahi-gpu · 2023-04-15 23:00
alyssaand just for completeness, on OpenGL:#asahi-gpu · 2023-04-15 22:59
alyssanative ubershaders (moltenvk): 120fps#asahi-gpu · 2023-04-15 22:59
alyssanative ubershaders (metal): 120fps#asahi-gpu · 2023-04-15 22:58
alyssaoh, also:#asahi-gpu · 2023-04-15 22:58
alyssaso those are our targets ^^#asahi-gpu · 2023-04-15 22:57
alyssa4K ubershaders: 11.5fps#asahi-gpu · 2023-04-15 22:57
alyssa4K special shader: ~100fps#asahi-gpu · 2023-04-15 22:56
alyssa(moltenvk)#asahi-gpu · 2023-04-15 22:55
alyssa4K ubershaders: 11.5fps#asahi-gpu · 2023-04-15 22:55
alyssa4K specialized shader: 63fps