render mentions on a separate line from the reply content.
This commit is contained in:
1 parent
f8380db665
commit
880640d935
422 files changed
+2864
-920
No files matched your search
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1588515348223254528"
|
||||
|
||||
**1/** @rianflo
|
||||
|
||||
@NOTimothyLottes Welcome Not Back! 🤘🏻♥️
|
||||
@NOTimothyLottes
|
||||
|
||||
Welcome Not Back! 🤘🏻♥️
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -30,6 +30,8 @@ in_reply_to: "1588331007622930432"
|
||||
|
||||
**1/** @NOTimothyLottes
|
||||
|
||||
@rianflo Vulkan: ~1500 lines of overhead (including header src, as I don't include) for complete hotrod bind-everything-only-once compute-only gfx engine. Not a fan of VK bloatware API complexity, but frankly it can be minimized, and exposes enough to do wonderfull things to the hardware.
|
||||
@rianflo
|
||||
|
||||
Vulkan: ~1500 lines of overhead (including header src, as I don't include) for complete hotrod bind-everything-only-once compute-only gfx engine. Not a fan of VK bloatware API complexity, but frankly it can be minimized, and exposes enough to do wonderfull things to the hardware.
|
||||
|
||||
Branches: [[archive/threads/NOTimothyLottes/2022-11-04-vulkan-1500-lines-of-overhead-including-header/2022-11-04-rianflo-welcome-not-back]]
|
||||
+3
-1
@@ -27,4 +27,6 @@ in_reply_to: "1590003266129383424"
|
||||
|
||||
**1/** @NOTimothyLottes
|
||||
|
||||
@olson_dan If only PC vendors with open ISAs (AMD/Intel) would allow loading binary compute shaders in VK built using non-driver toolchains. If Valve enabled binary shaders on Steam Deck in Linux, that would be my new exclusive dev platform, instead of just a possible porting target
|
||||
@olson_dan
|
||||
|
||||
If only PC vendors with open ISAs (AMD/Intel) would allow loading binary compute shaders in VK built using non-driver toolchains. If Valve enabled binary shaders on Steam Deck in Linux, that would be my new exclusive dev platform, instead of just a possible porting target
|
||||
+6
-2
@@ -28,11 +28,15 @@ parent_post_id: "1653556990302470151"
|
||||
|
||||
**1/** @BrianKaris
|
||||
|
||||
@NOTimothyLottes Great to see these return. Still have any of the videos?
|
||||
@NOTimothyLottes
|
||||
|
||||
Great to see these return. Still have any of the videos?
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@BrianKaris I might, but will have to build a machine to attach the old drives. Too busy making new stuff
|
||||
@BrianKaris
|
||||
|
||||
I might, but will have to build a machine to attach the old drives. Too busy making new stuff
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1653556990302470151"
|
||||
|
||||
**1/** @BrookeHodgman
|
||||
|
||||
@NOTimothyLottes I remember watching all of these blog entries fondly ❤
|
||||
@NOTimothyLottes
|
||||
|
||||
I remember watching all of these blog entries fondly ❤
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+9
-3
@@ -28,15 +28,21 @@ parent_post_id: "1653556990302470151"
|
||||
|
||||
**1/** @Karyuutensei
|
||||
|
||||
@NOTimothyLottes Is the blog still up somewhere?
|
||||
@NOTimothyLottes
|
||||
|
||||
Is the blog still up somewhere?
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@Karyuutensei No but I have archives in pieces on old hard drives. So there is a chance I might restore it some day.
|
||||
@Karyuutensei
|
||||
|
||||
No but I have archives in pieces on old hard drives. So there is a chance I might restore it some day.
|
||||
|
||||
**3/** @Karyuutensei
|
||||
|
||||
@NOTimothyLottes Speaking of archives, http://archive.org has some from the blogspot here https://web.archive.org/web/20160427173127/http://timothylottes.blogspot.com/ but basically nothing from the github page :S
|
||||
@NOTimothyLottes
|
||||
|
||||
Speaking of archives, http://archive.org has some from the blogspot here https://web.archive.org/web/20160427173127/http://timothylottes.blogspot.com/ but basically nothing from the github page :S
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+6
-2
@@ -28,11 +28,15 @@ parent_post_id: "1653556990302470151"
|
||||
|
||||
**1/** @oconnorkg
|
||||
|
||||
@NOTimothyLottes Did you write an engine called Atom? Talked about it on the http://OpenGL.org forum?
|
||||
@NOTimothyLottes
|
||||
|
||||
Did you write an engine called Atom? Talked about it on the http://OpenGL.org forum?
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@oconnorkg There was also Atomontage or something like that by another person. I had a project called Atom, but I don't remember if I was on the OGL message board
|
||||
@oconnorkg
|
||||
|
||||
There was also Atomontage or something like that by another person. I had a project called Atom, but I don't remember if I was on the OGL message board
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1653556990302470151"
|
||||
|
||||
**1/** @won3d
|
||||
|
||||
@NOTimothyLottes I remember all those fondly. I also remembered the trick you did to batch logical draw calls with branching in the shader
|
||||
@NOTimothyLottes
|
||||
|
||||
I remember all those fondly. I also remembered the trick you did to batch logical draw calls with branching in the shader
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+9
-3
@@ -28,15 +28,21 @@ parent_post_id: "1653559205360553985"
|
||||
|
||||
**1/** @won3d
|
||||
|
||||
@NOTimothyLottes My former thesis advisor was a big proponent of forth. Apparently SunOS used forth in preboot and you could do all sorts of wacky things. He interfaced with custom compute accelerators this way. I agree that concatenantive programming languages are underexplored
|
||||
@NOTimothyLottes
|
||||
|
||||
My former thesis advisor was a big proponent of forth. Apparently SunOS used forth in preboot and you could do all sorts of wacky things. He interfaced with custom compute accelerators this way. I agree that concatenantive programming languages are underexplored
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@won3d I think it is less the exact form of the language but more 'the way to make things simple' that truely important now.
|
||||
@won3d
|
||||
|
||||
I think it is less the exact form of the language but more 'the way to make things simple' that truely important now.
|
||||
|
||||
**3/** @won3d
|
||||
|
||||
@NOTimothyLottes There's something about Forth-style composition that is has a very nice appeal. It really seems to marry syntax and semantics very directly (but I can appreciate it at a distance, having not done any real work in it as you have)
|
||||
@NOTimothyLottes
|
||||
|
||||
There's something about Forth-style composition that is has a very nice appeal. It really seems to marry syntax and semantics very directly (but I can appreciate it at a distance, having not done any real work in it as you have)
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1653570742762479620"
|
||||
|
||||
**1/** @Laxer3A
|
||||
|
||||
@NOTimothyLottes This is when I learned about your work and found it incredible. Nowadays with 4K / 8K, people are really craving for a very good shader/model to emulate as close as possible the CRT feel for arcade / old console etc. (I am serious)
|
||||
@NOTimothyLottes
|
||||
|
||||
This is when I learned about your work and found it incredible. Nowadays with 4K / 8K, people are really craving for a very good shader/model to emulate as close as possible the CRT feel for arcade / old console etc. (I am serious)
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1653556990302470151"
|
||||
|
||||
**1/** @arm1n
|
||||
|
||||
@NOTimothyLottes Thanks for digging those up! Great stuff, very inspiring.
|
||||
@NOTimothyLottes
|
||||
|
||||
Thanks for digging those up! Great stuff, very inspiring.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+9
-3
@@ -217,15 +217,21 @@ Despite header docs which imply flag only works on DOMAIN_VRAM, using DOMAIN_GTT
|
||||
|
||||
**37/** @DaveAirlie
|
||||
|
||||
@NOTimothyLottes the problem there is usually tiling, GPUs expect graphicy things in VRAM to be tiled in very specific ways, it's hard to have a storage device do that. Using a transfer engine that can tile/detile makes a lot more sense.
|
||||
@NOTimothyLottes
|
||||
|
||||
the problem there is usually tiling, GPUs expect graphicy things in VRAM to be tiled in very specific ways, it's hard to have a storage device do that. Using a transfer engine that can tile/detile makes a lot more sense.
|
||||
|
||||
**38/** @NOTimothyLottes
|
||||
|
||||
@DaveAirlie The obvious elephant is an engine using only buffers for resource streaming and doing its own GPU-side decompression. This is practical NOW and portable too. But the lack of a bus master no-CPU direct storage transfer is a serious problem for throughput.
|
||||
@DaveAirlie
|
||||
|
||||
The obvious elephant is an engine using only buffers for resource streaming and doing its own GPU-side decompression. This is practical NOW and portable too. But the lack of a bus master no-CPU direct storage transfer is a serious problem for throughput.
|
||||
|
||||
**39/** @NOTimothyLottes
|
||||
|
||||
@DaveAirlie See raw texture streaming (even with lossless compression) is way less interesting now given modern massive data tech direction, u want substantially better lossy compression simply to fit in launch constraints. So really, buffers are the way to go anyway :)
|
||||
@DaveAirlie
|
||||
|
||||
See raw texture streaming (even with lossless compression) is way less interesting now given modern massive data tech direction, u want substantially better lossy compression simply to fit in launch constraints. So really, buffers are the way to go anyway :)
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1671276990987370501"
|
||||
|
||||
**1/** @SheriefFYI
|
||||
|
||||
@NOTimothyLottes Great thread!
|
||||
@NOTimothyLottes
|
||||
|
||||
Great thread!
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1671276990987370501"
|
||||
|
||||
**1/** @never_released
|
||||
|
||||
@NOTimothyLottes On Linux, NVIDIA has a very good UVM.
|
||||
@NOTimothyLottes
|
||||
|
||||
On Linux, NVIDIA has a very good UVM.
|
||||
|
||||
However, the infrastructure for doing that on Windows is quite lacking to say the least...
|
||||
|
||||
|
||||
+6
-2
@@ -28,13 +28,17 @@ parent_post_id: "1674757854471806977"
|
||||
|
||||
**1/** @SebAaltonen
|
||||
|
||||
@NOTimothyLottes Would be nice to talk a full presentation about this topic, but people want me to show cool tech and pretty pixels instead. Maybe one day.
|
||||
@NOTimothyLottes
|
||||
|
||||
Would be nice to talk a full presentation about this topic, but people want me to show cool tech and pretty pixels instead. Maybe one day.
|
||||
|
||||
I will save your image for that day (if I get approval to use it), since Twitter search is super bad.
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@SebAaltonen "Approval", haha, sure it's covered under my favorite license
|
||||
@SebAaltonen
|
||||
|
||||
"Approval", haha, sure it's covered under my favorite license
|
||||
|
||||

|
||||
## Related
|
||||
|
||||
+6
-2
@@ -28,12 +28,16 @@ parent_post_id: "1674757854471806977"
|
||||
|
||||
**1/** @_spolsh
|
||||
|
||||
@NOTimothyLottes Once in a while people need to be reminded to stop the bloat, understand the machine guts and be self aware about productive process
|
||||
@NOTimothyLottes
|
||||
|
||||
Once in a while people need to be reminded to stop the bloat, understand the machine guts and be self aware about productive process
|
||||
https://tonsky.me/blog/disenchantment/
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@_spolsh That was a fantastic read, thanks
|
||||
@_spolsh
|
||||
|
||||
That was a fantastic read, thanks
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1674757854471806977"
|
||||
|
||||
**1/** @domipheus
|
||||
|
||||
@NOTimothyLottes I like this, given I never write code any more.
|
||||
@NOTimothyLottes
|
||||
|
||||
I like this, given I never write code any more.
|
||||
sadly i am still a grumpy git.
|
||||
|
||||
## Related
|
||||
|
||||
+6
-2
@@ -28,12 +28,16 @@ parent_post_id: "1674757854471806977"
|
||||
|
||||
**1/** @leonard_coder
|
||||
|
||||
@NOTimothyLottes $4e71
|
||||
@NOTimothyLottes
|
||||
|
||||
$4e71
|
||||
if you know, you know
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@leonard_coder ${EA, 1A, 3A, 5A, 7A, DA, or FA}
|
||||
@leonard_coder
|
||||
|
||||
${EA, 1A, 3A, 5A, 7A, DA, or FA}
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1674757854471806977"
|
||||
|
||||
**1/** @CodingFiend
|
||||
|
||||
@NOTimothyLottes @Jonathan_Blow i designed a language Beads, which uses a graph DB, has no memory allocation, super modular, approaches this minimalism as close as humanly possible, but billable hour / job security seeking programmers refuse to try it
|
||||
@NOTimothyLottes @Jonathan_Blow
|
||||
|
||||
i designed a language Beads, which uses a graph DB, has no memory allocation, super modular, approaches this minimalism as close as humanly possible, but billable hour / job security seeking programmers refuse to try it
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1674757854471806977"
|
||||
|
||||
**1/** @DefenceForceOrg
|
||||
|
||||
@NOTimothyLottes Many games used to be like that, at least the ones without dynamic content, mods, etc...
|
||||
@NOTimothyLottes
|
||||
|
||||
Many games used to be like that, at least the ones without dynamic content, mods, etc...
|
||||
|
||||
Most of the stuff I worked on on PSX and Dreamcast basically just loads big files with everything pre-allocated and aligned properly at the final location, ready to use.
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1674757854471806977"
|
||||
|
||||
**1/** @PierreTerdiman
|
||||
|
||||
@NOTimothyLottes I was calling it "disoriented programming" just the other day.
|
||||
@NOTimothyLottes
|
||||
|
||||
I was calling it "disoriented programming" just the other day.
|
||||
|
||||
https://x.com/PierreTerdiman/status/1673389650172321813?s=20
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1674757854471806977"
|
||||
|
||||
**1/** @SimonNordon
|
||||
|
||||
@NOTimothyLottes NOP is ideal.
|
||||
@NOTimothyLottes
|
||||
|
||||
NOP is ideal.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1674757854471806977"
|
||||
|
||||
**1/** @TimSweeneyEpic
|
||||
|
||||
@NOTimothyLottes Can teach it in abstinence-only programming classes!
|
||||
@NOTimothyLottes
|
||||
|
||||
Can teach it in abstinence-only programming classes!
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1674757854471806977"
|
||||
|
||||
**1/** @asparagiii
|
||||
|
||||
@NOTimothyLottes Looks like a koala
|
||||
@NOTimothyLottes
|
||||
|
||||
Looks like a koala
|
||||
|
||||

|
||||
## Related
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1674757854471806977"
|
||||
|
||||
**1/** @azeke1984
|
||||
|
||||
@NOTimothyLottes Best software is absense of it:
|
||||
@NOTimothyLottes
|
||||
|
||||
Best software is absense of it:
|
||||
|
||||
https://en.wikipedia.org/wiki/The_Mythical_Man-Month
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1674757854471806977"
|
||||
|
||||
**1/** @claudiogonzalo
|
||||
|
||||
@NOTimothyLottes c++ to √c
|
||||
@NOTimothyLottes
|
||||
|
||||
c++ to √c
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1674757854471806977"
|
||||
|
||||
**1/** @helpful_signage
|
||||
|
||||
@NOTimothyLottes Folks, they're calling it "computer oriented programming". It's where you stop trying to impress peers and just tell the computer the best way to do things
|
||||
@NOTimothyLottes
|
||||
|
||||
Folks, they're calling it "computer oriented programming". It's where you stop trying to impress peers and just tell the computer the best way to do things
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1674757854471806977"
|
||||
|
||||
**1/** @wyattscarpenter
|
||||
|
||||
@NOTimothyLottes https://github.com/wyattscarpenter/wu
|
||||
@NOTimothyLottes
|
||||
|
||||
https://github.com/wyattscarpenter/wu
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+18
-6
@@ -28,33 +28,45 @@ parent_post_id: "1688491417109196800"
|
||||
|
||||
**1/** @BlurBusters
|
||||
|
||||
@NOTimothyLottes Very interesting "crosstalk from voltage inversion" artifact. Some repeating patterns or flicker patterns can trigger crosstalk artifacts too. Behavior varies a lot between TN, IPS, and VA, but all of them have to alternate voltage polarity spatially and temporally.
|
||||
@NOTimothyLottes
|
||||
|
||||
Very interesting "crosstalk from voltage inversion" artifact. Some repeating patterns or flicker patterns can trigger crosstalk artifacts too. Behavior varies a lot between TN, IPS, and VA, but all of them have to alternate voltage polarity spatially and temporally.
|
||||
|
||||

|
||||

|
||||
|
||||
**2/** @BlurBusters
|
||||
|
||||
@NOTimothyLottes Related reads:
|
||||
@NOTimothyLottes
|
||||
|
||||
Related reads:
|
||||
https://www.lagom.nl/lcd-test/inversion.php
|
||||
https://forums.blurbusters.com/viewtopic.php?t=7539
|
||||
http://www.techmind.org/lcd/#:~:text=Inversion
|
||||
|
||||
**3/** @NOTimothyLottes
|
||||
|
||||
@BlurBusters I appreciate the links. Came to the same conclusion, for LCDs when doing low scaling like 1:2x2 'CRT' emulation, I'll have to do a stylized blue noise phosphor pattern instead.
|
||||
@BlurBusters
|
||||
|
||||
I appreciate the links. Came to the same conclusion, for LCDs when doing low scaling like 1:2x2 'CRT' emulation, I'll have to do a stylized blue noise phosphor pattern instead.
|
||||
|
||||
**4/** @Ak4115x
|
||||
|
||||
@NOTimothyLottes @BlurBusters "VCOM inversion" -if wasn't line2line but frame2frame that'd "flicker" instead at half the refresh rate so that's why it's preferred& there's also another peculiarity of this scheme. Worth looking into, spent a few hours afternoon,it's late evening now maybe share another time.
|
||||
@NOTimothyLottes @BlurBusters
|
||||
|
||||
"VCOM inversion" -if wasn't line2line but frame2frame that'd "flicker" instead at half the refresh rate so that's why it's preferred& there's also another peculiarity of this scheme. Worth looking into, spent a few hours afternoon,it's late evening now maybe share another time.
|
||||
|
||||
**5/** @BlurBusters
|
||||
|
||||
@Ak4115x @NOTimothyLottes Inversion algorithm is both spatial and temporal on all of them, regardless of spatial pattern of voltage inversion. Line to line is also frame to frame. (lines swaps voltage polarity in next frame)
|
||||
@Ak4115x @NOTimothyLottes
|
||||
|
||||
Inversion algorithm is both spatial and temporal on all of them, regardless of spatial pattern of voltage inversion. Line to line is also frame to frame. (lines swaps voltage polarity in next frame)
|
||||
|
||||
**6/** @Ak4115x
|
||||
|
||||
@BlurBusters @NOTimothyLottes LCOS has singular VCOM there's no pattern to it and no such artifact.
|
||||
@BlurBusters @NOTimothyLottes
|
||||
|
||||
LCOS has singular VCOM there's no pattern to it and no such artifact.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+9
-3
@@ -28,15 +28,21 @@ parent_post_id: "1692560907988029769"
|
||||
|
||||
**1/** @tomcr2100
|
||||
|
||||
@NOTimothyLottes i am not quite sure what do you mean by subpixel scan? do you override the normal (refresh) scanout process?
|
||||
@NOTimothyLottes
|
||||
|
||||
i am not quite sure what do you mean by subpixel scan? do you override the normal (refresh) scanout process?
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@tomcr2100 It's like "clear-type" font rendering where if you know the LCD sub-pixel configuration for the RGB components of a pixel, you can do a much better job of computing and outputing the value at the specific RGB sub-pixel element. So i'm doing this for CRT-like emulation on the Deck
|
||||
@tomcr2100
|
||||
|
||||
It's like "clear-type" font rendering where if you know the LCD sub-pixel configuration for the RGB components of a pixel, you can do a much better job of computing and outputing the value at the specific RGB sub-pixel element. So i'm doing this for CRT-like emulation on the Deck
|
||||
|
||||
**3/** @tomcr2100
|
||||
|
||||
@NOTimothyLottes just curious, i started doing something similar, but this year i have focused more on rest&recover. i went with a trilinear style aperture grill approximation, and just allow prim components to leak into the two others.
|
||||
@NOTimothyLottes
|
||||
|
||||
just curious, i started doing something similar, but this year i have focused more on rest&recover. i went with a trilinear style aperture grill approximation, and just allow prim components to leak into the two others.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+6
-2
@@ -28,11 +28,15 @@ parent_post_id: "1692397318471926054"
|
||||
|
||||
**1/** @Karyuutensei
|
||||
|
||||
@NOTimothyLottes How many passes do you need to produce this result?
|
||||
@NOTimothyLottes
|
||||
|
||||
How many passes do you need to produce this result?
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@Karyuutensei 1 pass: 12 fetches/outpix, in 2 batches. I use 6 gather4's to grab a 4-wide(x)2-line region for the {R,G,B} channels. Then 6 more fetches to do energy conserving computation of output for each {nearest 2 lines}x{R,G,B} channel based {intensity, position vertically on scan}.
|
||||
@Karyuutensei
|
||||
|
||||
1 pass: 12 fetches/outpix, in 2 batches. I use 6 gather4's to grab a 4-wide(x)2-line region for the {R,G,B} channels. Then 6 more fetches to do energy conserving computation of output for each {nearest 2 lines}x{R,G,B} channel based {intensity, position vertically on scan}.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+6
-2
@@ -28,11 +28,15 @@ parent_post_id: "1735631826427732305"
|
||||
|
||||
**1/** @SebAaltonen
|
||||
|
||||
@NOTimothyLottes They design one API for each separate use case instead of making general purpose flexible SIMD hardware and API for the developers to implement what ever algorithm they need. CPU side got this right. PS2 had correct design, but Nvidia choose hardware T&L for desktop :(
|
||||
@NOTimothyLottes
|
||||
|
||||
They design one API for each separate use case instead of making general purpose flexible SIMD hardware and API for the developers to implement what ever algorithm they need. CPU side got this right. PS2 had correct design, but Nvidia choose hardware T&L for desktop :(
|
||||
|
||||
**2/** @SebAaltonen
|
||||
|
||||
@NOTimothyLottes I kind of understand hardware T&L back then because it was a new field and programmable hardware didn't exist. But now we have massive amount of wide SIMDs and bandwidth and big caches too. We can do better!
|
||||
@NOTimothyLottes
|
||||
|
||||
I kind of understand hardware T&L back then because it was a new field and programmable hardware didn't exist. But now we have massive amount of wide SIMDs and bandwidth and big caches too. We can do better!
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1736157335058300999"
|
||||
|
||||
**1/** @AgileJebrim
|
||||
|
||||
@NOTimothyLottes Yep put the whole game logic in a game.glsl compute shader.
|
||||
@NOTimothyLottes
|
||||
|
||||
Yep put the whole game logic in a game.glsl compute shader.
|
||||
|
||||
**2/** @AgileJebrim
|
||||
|
||||
|
||||
+15
-5
@@ -28,25 +28,35 @@ parent_post_id: "1736147815829565624"
|
||||
|
||||
**1/** @SheriefFYI
|
||||
|
||||
@NOTimothyLottes two point six seconds?!! D3D12CreateDevice() on my machine is ~300ms..
|
||||
@NOTimothyLottes
|
||||
|
||||
two point six seconds?!! D3D12CreateDevice() on my machine is ~300ms..
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@SheriefFYI Yeah and that's a warm second run too. I dev on crippled laptops so when the handicaps are removed the stuff really flies.
|
||||
@SheriefFYI
|
||||
|
||||
Yeah and that's a warm second run too. I dev on crippled laptops so when the handicaps are removed the stuff really flies.
|
||||
|
||||
**3/** @SheriefFYI
|
||||
|
||||
@NOTimothyLottes still that sounds like a lot, what specs / driver? Any weird vk layers loading?
|
||||
@NOTimothyLottes
|
||||
|
||||
still that sounds like a lot, what specs / driver? Any weird vk layers loading?
|
||||
|
||||
**4/** @NOTimothyLottes
|
||||
|
||||
@SheriefFYI Ok, yeah just reprofiled, and it's down to 269 ms. Best part of the Win10 experience, never know what is actually happening in the background.
|
||||
@SheriefFYI
|
||||
|
||||
Ok, yeah just reprofiled, and it's down to 269 ms. Best part of the Win10 experience, never know what is actually happening in the background.
|
||||
|
||||

|
||||
|
||||
**5/** @SheriefFYI
|
||||
|
||||
@NOTimothyLottes *whew* that sounds more normal
|
||||
@NOTimothyLottes
|
||||
|
||||
*whew* that sounds more normal
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+24
-8
@@ -28,13 +28,17 @@ parent_post_id: "1736154923408953499"
|
||||
|
||||
**1/** @VPCOMPRESSB
|
||||
|
||||
@NOTimothyLottes so you're preallocating every type of descriptor to a max count and aliasing them with various qualifiers/attributes? all that in a single memory layout?
|
||||
@NOTimothyLottes
|
||||
|
||||
so you're preallocating every type of descriptor to a max count and aliasing them with various qualifiers/attributes? all that in a single memory layout?
|
||||
|
||||
if this is the case, the program identifier makes sense. you can just swap out the code, leaving the data untouched.
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@VPCOMPRESSB I use the layout aliasing to choose things like {read-only K$ reads, vs read-write texture cache access} for buffers, for making sure GLC=1 (write through to coherent cache domain) is enabled for stores (image and buffer), as well as selecting the texel format for image access :)
|
||||
@VPCOMPRESSB
|
||||
|
||||
I use the layout aliasing to choose things like {read-only K$ reads, vs read-write texture cache access} for buffers, for making sure GLC=1 (write through to coherent cache domain) is enabled for stores (image and buffer), as well as selecting the texel format for image access :)
|
||||
|
||||
**3/** @VPCOMPRESSB
|
||||
|
||||
@@ -50,27 +54,39 @@ aliasing supports this even further, with explicit intentions for resources.
|
||||
|
||||
**4/** @NOTimothyLottes
|
||||
|
||||
@VPCOMPRESSB On modern desktop GPUs it is very efficient to have everything bound all the time (bind everything once/frame). On AMD on use the descriptor is loaded into SGPRs. You only pay for what is used. And ideally group descriptors used together near so they share same cache lines.
|
||||
@VPCOMPRESSB
|
||||
|
||||
On modern desktop GPUs it is very efficient to have everything bound all the time (bind everything once/frame). On AMD on use the descriptor is loaded into SGPRs. You only pay for what is used. And ideally group descriptors used together near so they share same cache lines.
|
||||
|
||||
**5/** @NOTimothyLottes
|
||||
|
||||
@VPCOMPRESSB Merging independent shaders is then easy. Merging dependent shaders is more complex. You can both do it an unsafe way or a safe way (too long for one tweet)...
|
||||
@VPCOMPRESSB
|
||||
|
||||
Merging independent shaders is then easy. Merging dependent shaders is more complex. You can both do it an unsafe way or a safe way (too long for one tweet)...
|
||||
|
||||
**6/** @NOTimothyLottes
|
||||
|
||||
@VPCOMPRESSB The unsafe way: launch a N+M sized 1D dispatch. Bank on having enough work in N such that when the dependent M starts that enough of N is finished in practice. This can work when early M depends on only early N workgroups.
|
||||
@VPCOMPRESSB
|
||||
|
||||
The unsafe way: launch a N+M sized 1D dispatch. Bank on having enough work in N such that when the dependent M starts that enough of N is finished in practice. This can work when early M depends on only early N workgroups.
|
||||
|
||||
**7/** @NOTimothyLottes
|
||||
|
||||
@VPCOMPRESSB There are various safe ways. For instance if the dependent work isn't done, one can conditionally duplicate the work. Or conditionally use a fallback. Or only use the pre task if it had finished to accelerate the second, for example hierarchical empty space skipping ...
|
||||
@VPCOMPRESSB
|
||||
|
||||
There are various safe ways. For instance if the dependent work isn't done, one can conditionally duplicate the work. Or conditionally use a fallback. Or only use the pre task if it had finished to accelerate the second, for example hierarchical empty space skipping ...
|
||||
|
||||
**8/** @NOTimothyLottes
|
||||
|
||||
@VPCOMPRESSB The challenge of course is that the obvious stuff like spin waiting isn't safe because of bad API and driver design : no forward progress guarantee (on preemption, etc)
|
||||
@VPCOMPRESSB
|
||||
|
||||
The challenge of course is that the obvious stuff like spin waiting isn't safe because of bad API and driver design : no forward progress guarantee (on preemption, etc)
|
||||
|
||||
**9/** @NOTimothyLottes
|
||||
|
||||
@VPCOMPRESSB Quite literally they just need to put in a guarantee that workgroups with lower coords in scan order are launched first and restored first in a partial preemption restore. Then you could safely spin on work in a prior numbered workgroup
|
||||
@VPCOMPRESSB
|
||||
|
||||
Quite literally they just need to put in a guarantee that workgroups with lower coords in scan order are launched first and restored first in a partial preemption restore. Then you could safely spin on work in a prior numbered workgroup
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1742743018929557805"
|
||||
|
||||
**1/** @kenpex
|
||||
|
||||
@NOTimothyLottes It's what debuggers should be. Debuggers made zero progress in the last decade, but fundamentally they patch running code... just they are limited to patch an interrupt instead of allowing us to do... anything. Even tracepoints, while nice, are a castrated version of livecode.
|
||||
@NOTimothyLottes
|
||||
|
||||
It's what debuggers should be. Debuggers made zero progress in the last decade, but fundamentally they patch running code... just they are limited to patch an interrupt instead of allowing us to do... anything. Even tracepoints, while nice, are a castrated version of livecode.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1776597200073568623"
|
||||
|
||||
**1/** @MartinJIFuller
|
||||
|
||||
@NOTimothyLottes @SebAaltonen A worthwhile project, knowledge well worth sharing, but is a book the right format? Perhaps yes, just thinking out loud.
|
||||
@NOTimothyLottes @SebAaltonen
|
||||
|
||||
A worthwhile project, knowledge well worth sharing, but is a book the right format? Perhaps yes, just thinking out loud.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1776597200073568623"
|
||||
|
||||
**1/** @RickyAH
|
||||
|
||||
@NOTimothyLottes @SebAaltonen @MartinJIFuller Ha! That won’t save you from my follow
|
||||
@NOTimothyLottes @SebAaltonen @MartinJIFuller
|
||||
|
||||
Ha! That won’t save you from my follow
|
||||
|
||||
<video controls src="https://video.twimg.com/tweet_video/GKoMKCHWwAAWLvG.mp4"></video>
|
||||
## Related
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1776597200073568623"
|
||||
|
||||
**1/** @BenSimsTech
|
||||
|
||||
@NOTimothyLottes @SebAaltonen @MartinJIFuller Oh sick, I'm deep in optimising shaders in an AAA game for GCN hardware right now (You can probably guess the platform(s)) so this is super relevant to me. 😅
|
||||
@NOTimothyLottes @SebAaltonen @MartinJIFuller
|
||||
|
||||
Oh sick, I'm deep in optimising shaders in an AAA game for GCN hardware right now (You can probably guess the platform(s)) so this is super relevant to me. 😅
|
||||
Going to give it all a thorough read, I'm after all the GCN info I can find right now.
|
||||
|
||||
## Related
|
||||
|
||||
+3
-1
@@ -29,7 +29,9 @@ in_reply_to: "1776518700230721688"
|
||||
|
||||
**1/** @NOTimothyLottes
|
||||
|
||||
@MartinJIFuller @SebAaltonen On https://mastodon.gamedev.place/@NOTimothyLottes I'm collecting posts with AMD GPU disassembly dumps for a book on everything the shader compiler 'isn't doing'. Constant AMD GPU compiler perf bug SPAM is a key part of my online strategy to keep a low follower count.
|
||||
@MartinJIFuller @SebAaltonen
|
||||
|
||||
On https://mastodon.gamedev.place/@NOTimothyLottes I'm collecting posts with AMD GPU disassembly dumps for a book on everything the shader compiler 'isn't doing'. Constant AMD GPU compiler perf bug SPAM is a key part of my online strategy to keep a low follower count.
|
||||
|
||||

|
||||
Branches: [[archive/threads/NOTimothyLottes/2024-04-06-on-https-mastodon-gamedev-place-notimothylottes/2024-04-06-MartinJIFuller-a-worthwhile-project-knowledge-well-worth-sharing]], [[archive/threads/NOTimothyLottes/2024-04-06-on-https-mastodon-gamedev-place-notimothylottes/2024-04-08-RickyAH-ha-that-wont-save-you-from-my-follow]], [[archive/threads/NOTimothyLottes/2024-04-06-on-https-mastodon-gamedev-place-notimothylottes/2024-04-09-BenSimsTech-oh-sick-im-deep-in-optimising-shaders-in-an-aaa]]
|
||||
+3
-1
@@ -27,4 +27,6 @@ in_reply_to: ""
|
||||
|
||||
**1/** @NOTimothyLottes
|
||||
|
||||
@Nerfoxingaround @SebAaltonen It was only later when systems forced C ABI library interfaces with it's stacks and junk that things got messy and only because of the C. Then C++ happened and things got much worse. Pure ASM is easy, its interfacing with the bloat world that got hard.
|
||||
@Nerfoxingaround @SebAaltonen
|
||||
|
||||
It was only later when systems forced C ABI library interfaces with it's stacks and junk that things got messy and only because of the C. Then C++ happened and things got much worse. Pure ASM is easy, its interfacing with the bloat world that got hard.
|
||||
+12
-4
@@ -28,19 +28,27 @@ parent_post_id: "1857813028349128825"
|
||||
|
||||
**1/** @bmcnett
|
||||
|
||||
@NOTimothyLottes So each line is 63 spaces followed by a \n, and those 63 spaces get replaced by printable characters dynamically? I have long dreamed of a text format with a fixed 128 byte line width, and cache line size is gradually switching over from 64 to 128
|
||||
@NOTimothyLottes
|
||||
|
||||
So each line is 63 spaces followed by a \n, and those 63 spaces get replaced by printable characters dynamically? I have long dreamed of a text format with a fixed 128 byte line width, and cache line size is gradually switching over from 64 to 128
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@bmcnett Yes fixed character[63]='\n', string fills until then or spaces out. I did 128-char once, but still sometimes use small VGA resolutions. Also written a source editor a few times with this fixed line size, makes for a very simple implementation ...
|
||||
@bmcnett
|
||||
|
||||
Yes fixed character[63]='\n', string fills until then or spaces out. I did 128-char once, but still sometimes use small VGA resolutions. Also written a source editor a few times with this fixed line size, makes for a very simple implementation ...
|
||||
|
||||
**3/** @bmcnett
|
||||
|
||||
@NOTimothyLottes Variable line width ASCII text files made a lot of sense when storage was 100KB or 100MB or 100GB, but now that it's in the terabytes, why even bother
|
||||
@NOTimothyLottes
|
||||
|
||||
Variable line width ASCII text files made a lot of sense when storage was 100KB or 100MB or 100GB, but now that it's in the terabytes, why even bother
|
||||
|
||||
**4/** @NOTimothyLottes
|
||||
|
||||
@bmcnett That line of thinking is universal solution to most self-inflicted problems of the modern era.
|
||||
@bmcnett
|
||||
|
||||
That line of thinking is universal solution to most self-inflicted problems of the modern era.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+21
-7
@@ -28,32 +28,46 @@ parent_post_id: "1857805438151983120"
|
||||
|
||||
**1/** @datenwolf
|
||||
|
||||
@NOTimothyLottes Why the heck do you care about cache lines, if you write to a mmaped file? Of course there's overhead: TLBs aren't free. And TLBs matter… at lot in fact. When you map the file, initially the kernel marks some address space, but doesn't populate it with pages. 1/
|
||||
@NOTimothyLottes
|
||||
|
||||
Why the heck do you care about cache lines, if you write to a mmaped file? Of course there's overhead: TLBs aren't free. And TLBs matter… at lot in fact. When you map the file, initially the kernel marks some address space, but doesn't populate it with pages. 1/
|
||||
|
||||
**2/** @datenwolf
|
||||
|
||||
@NOTimothyLottes On the first write to a non-faulted page, the kernel has to find a free page in memory, associate it in the page table, all the while keeping an eye on all threads process, since changes to a process virtual address space must appear atomic. 2/
|
||||
@NOTimothyLottes
|
||||
|
||||
On the first write to a non-faulted page, the kernel has to find a free page in memory, associate it in the page table, all the while keeping an eye on all threads process, since changes to a process virtual address space must appear atomic. 2/
|
||||
|
||||
**3/** @datenwolf
|
||||
|
||||
@NOTimothyLottes Memory maps aren't free. Simple writes to a file will easily outperform and cause less overhead, than naively implemented mmaped I/O. 3/
|
||||
@NOTimothyLottes
|
||||
|
||||
Memory maps aren't free. Simple writes to a file will easily outperform and cause less overhead, than naively implemented mmaped I/O. 3/
|
||||
|
||||
**4/** @NOTimothyLottes
|
||||
|
||||
@datenwolf BTW, I pre-fault my mapped files. Just like I pre-fault the binary and data segments too. But sure the pre-fault could go stale. And yes TLBs are a system perf issue, but atlas you need admin priv on Windows to play 2 MiB pages for data, so it's off the table
|
||||
@datenwolf
|
||||
|
||||
BTW, I pre-fault my mapped files. Just like I pre-fault the binary and data segments too. But sure the pre-fault could go stale. And yes TLBs are a system perf issue, but atlas you need admin priv on Windows to play 2 MiB pages for data, so it's off the table
|
||||
|
||||
**5/** @NOTimothyLottes
|
||||
|
||||
@datenwolf Why cacheline aligned and sized on the CPU? In theory store the entire line in a short enough timeframe and your Read-Modify-Write becomes just a Write! CPU doesn't have byte-write-mask (I think). If SW+HW is good. And threads keeping to isolated lines means no false sharing. Etc
|
||||
@datenwolf
|
||||
|
||||
Why cacheline aligned and sized on the CPU? In theory store the entire line in a short enough timeframe and your Read-Modify-Write becomes just a Write! CPU doesn't have byte-write-mask (I think). If SW+HW is good. And threads keeping to isolated lines means no false sharing. Etc
|
||||
|
||||
**6/** @datenwolf
|
||||
|
||||
@NOTimothyLottes (That cacheline remark was meant rhetorically; between cache misses and page faults, a page fault will largely overshadow a cache miss in performance overhead.
|
||||
@NOTimothyLottes
|
||||
|
||||
(That cacheline remark was meant rhetorically; between cache misses and page faults, a page fault will largely overshadow a cache miss in performance overhead.
|
||||
But yes, if you prefault, then that problem is mitigated.)
|
||||
|
||||
**7/** @NOTimothyLottes
|
||||
|
||||
@datenwolf 'Smart' people keep trying to impose (aka force) their will on others through poor system APIs, like not being able to pre-pin pages. Good look buddy, I'll just run a background task that continuously touch walks the pages I want pinned anyway.
|
||||
@datenwolf
|
||||
|
||||
'Smart' people keep trying to impose (aka force) their will on others through poor system APIs, like not being able to pre-pin pages. Good look buddy, I'll just run a background task that continuously touch walks the pages I want pinned anyway.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+15
-5
@@ -28,15 +28,21 @@ parent_post_id: "1857803914604618029"
|
||||
|
||||
**1/** @static_assert_0
|
||||
|
||||
@NOTimothyLottes This is super cool, but why map a file and not just stdout?
|
||||
@NOTimothyLottes
|
||||
|
||||
This is super cool, but why map a file and not just stdout?
|
||||
|
||||
**2/** @vodangkhoa873
|
||||
|
||||
@static_assert_0 @NOTimothyLottes The writes can be done concurrently from many threads?
|
||||
@static_assert_0 @NOTimothyLottes
|
||||
|
||||
The writes can be done concurrently from many threads?
|
||||
|
||||
**3/** @NOTimothyLottes
|
||||
|
||||
@vodangkhoa873 @static_assert_0 Yes, one 'atomicAdd(atomAdr,1)&65535' to get the line number (window of 65536 max lines) then write the line individually. Only contention is on that atomicAdd CPU instruction which is as minimal as possible.
|
||||
@vodangkhoa873 @static_assert_0
|
||||
|
||||
Yes, one 'atomicAdd(atomAdr,1)&65535' to get the line number (window of 65536 max lines) then write the line individually. Only contention is on that atomicAdd CPU instruction which is as minimal as possible.
|
||||
|
||||
I do the atomic add instruction using simple inline ASM (below)
|
||||
|
||||
@@ -44,11 +50,15 @@ I do the atomic add instruction using simple inline ASM (below)
|
||||
|
||||
**4/** @static_assert_0
|
||||
|
||||
@NOTimothyLottes @vodangkhoa873 I love this, but are you not able to get that codegen with intrinsics or just normal C?
|
||||
@NOTimothyLottes @vodangkhoa873
|
||||
|
||||
I love this, but are you not able to get that codegen with intrinsics or just normal C?
|
||||
|
||||
**5/** @NOTimothyLottes
|
||||
|
||||
@static_assert_0 @vodangkhoa873 I've been hand rolling intrinsics CPU-side in GCC with inline asm since the dawn of support for that. So haven't kept up with the high-level-lang mess fire since.
|
||||
@static_assert_0 @vodangkhoa873
|
||||
|
||||
I've been hand rolling intrinsics CPU-side in GCC with inline asm since the dawn of support for that. So haven't kept up with the high-level-lang mess fire since.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+9
-3
@@ -28,15 +28,21 @@ parent_post_id: "1857804669994565771"
|
||||
|
||||
**1/** @HerrUppoHoppa
|
||||
|
||||
@NOTimothyLottes Curious why you memory map the 32 bit counter to the file. Also why does it get half the file as opposed to just the end of the mapped region?
|
||||
@NOTimothyLottes
|
||||
|
||||
Curious why you memory map the 32 bit counter to the file. Also why does it get half the file as opposed to just the end of the mapped region?
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@HerrUppoHoppa It's pow2 message lines so fixing wrap is AND(cnt,lines-1). Counter after that and needs to take a page minimum. So yes I could make the size slightly smaller, but just lazy. Counter in file because then multiple runs accumulate in the file for comparison.
|
||||
@HerrUppoHoppa
|
||||
|
||||
It's pow2 message lines so fixing wrap is AND(cnt,lines-1). Counter after that and needs to take a page minimum. So yes I could make the size slightly smaller, but just lazy. Counter in file because then multiple runs accumulate in the file for comparison.
|
||||
|
||||
**3/** @HerrUppoHoppa
|
||||
|
||||
@NOTimothyLottes Ah I see, interesting solution!
|
||||
@NOTimothyLottes
|
||||
|
||||
Ah I see, interesting solution!
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+24
-8
@@ -28,35 +28,51 @@ parent_post_id: "1859369992355021246"
|
||||
|
||||
**1/** @AgileJebrim
|
||||
|
||||
@NOTimothyLottes How reliable in your experience in code like that is the compilation to avoid branches?
|
||||
@NOTimothyLottes
|
||||
|
||||
How reliable in your experience in code like that is the compilation to avoid branches?
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@AgileJebrim Lots of stuff can get mapped by the compiler to V_CNDMASK_B32 instead of branching by using mix(a,b,bool) syntax. I rarely use branching because of how horrible the code generation is. No way to express that the common path stay code linear either, etc.
|
||||
@AgileJebrim
|
||||
|
||||
Lots of stuff can get mapped by the compiler to V_CNDMASK_B32 instead of branching by using mix(a,b,bool) syntax. I rarely use branching because of how horrible the code generation is. No way to express that the common path stay code linear either, etc.
|
||||
|
||||
**3/** @AgileJebrim
|
||||
|
||||
@NOTimothyLottes I know in CUDA-land that it likes to create branches for ternaries if it contains more than 4 total instructions in a statement.
|
||||
@NOTimothyLottes
|
||||
|
||||
I know in CUDA-land that it likes to create branches for ternaries if it contains more than 4 total instructions in a statement.
|
||||
|
||||
**4/** @NOTimothyLottes
|
||||
|
||||
@AgileJebrim But the real problem is lacking of explicit controls, and lacking implicit branch hints (wave-uniform/non-uniform, expected branch hit rate, etc). Better if we could just do explicit ASM style branch instructions and labels.
|
||||
@AgileJebrim
|
||||
|
||||
But the real problem is lacking of explicit controls, and lacking implicit branch hints (wave-uniform/non-uniform, expected branch hit rate, etc). Better if we could just do explicit ASM style branch instructions and labels.
|
||||
|
||||
**5/** @AgileJebrim
|
||||
|
||||
@NOTimothyLottes Well I seek to ban branches entirely, so that’s the exact opposite of what I want.
|
||||
@NOTimothyLottes
|
||||
|
||||
Well I seek to ban branches entirely, so that’s the exact opposite of what I want.
|
||||
|
||||
**6/** @NOTimothyLottes
|
||||
|
||||
@AgileJebrim If your shader I$ is say 32 KiB and your instructions average say 8-bytes. You have 4 K instructions before you are streaming the program not just the data. Code size is actually important. And while micro level unroll is needed, macro level duplication is a problem with tiny I$
|
||||
@AgileJebrim
|
||||
|
||||
If your shader I$ is say 32 KiB and your instructions average say 8-bytes. You have 4 K instructions before you are streaming the program not just the data. Code size is actually important. And while micro level unroll is needed, macro level duplication is a problem with tiny I$
|
||||
|
||||
**7/** @AgileJebrim
|
||||
|
||||
@NOTimothyLottes I avoid the duplication of instruction patterns too. I feel it’s a failure to properly parallelize if you’re repeating the same instructions instead of data parallelizing further.
|
||||
@NOTimothyLottes
|
||||
|
||||
I avoid the duplication of instruction patterns too. I feel it’s a failure to properly parallelize if you’re repeating the same instructions instead of data parallelizing further.
|
||||
|
||||
**8/** @AgileJebrim
|
||||
|
||||
@NOTimothyLottes One more reason why I avoid functions.
|
||||
@NOTimothyLottes
|
||||
|
||||
One more reason why I avoid functions.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+48
-16
@@ -28,45 +28,65 @@ parent_post_id: "1859791162091110754"
|
||||
|
||||
**1/** @AgileJebrim
|
||||
|
||||
@NOTimothyLottes Shouldn’t uniform be a scalar?
|
||||
@NOTimothyLottes
|
||||
|
||||
Shouldn’t uniform be a scalar?
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@AgileJebrim Well 'uniform' in GLSL is a storage qualifier, "Uniforms are so named because they DO NOT CHANGE from one shader invocation to the next within a particular rendering cal" so you probably want another term for SGPR to avoid aliasing qualifiers
|
||||
@AgileJebrim
|
||||
|
||||
Well 'uniform' in GLSL is a storage qualifier, "Uniforms are so named because they DO NOT CHANGE from one shader invocation to the next within a particular rendering cal" so you probably want another term for SGPR to avoid aliasing qualifiers
|
||||
|
||||
**3/** @AgileJebrim
|
||||
|
||||
@NOTimothyLottes Within ISPC, uniform means scalar and varying means vector.
|
||||
@NOTimothyLottes
|
||||
|
||||
Within ISPC, uniform means scalar and varying means vector.
|
||||
|
||||
**4/** @AgileJebrim
|
||||
|
||||
@NOTimothyLottes Looking deeper into the definition of SGPRs. They’re uniform just across each wavefront, rather than the entire dispatch yeah?
|
||||
@NOTimothyLottes
|
||||
|
||||
Looking deeper into the definition of SGPRs. They’re uniform just across each wavefront, rather than the entire dispatch yeah?
|
||||
|
||||
**5/** @NOTimothyLottes
|
||||
|
||||
@AgileJebrim Yes it's a separate register file and logic unit that is per-wave instead of per-lane. Since it's introduction in Turing, NV calls them "URX for uniform registers" while AMD calls them SGPRs (scalar general purpose registers)
|
||||
@AgileJebrim
|
||||
|
||||
Yes it's a separate register file and logic unit that is per-wave instead of per-lane. Since it's introduction in Turing, NV calls them "URX for uniform registers" while AMD calls them SGPRs (scalar general purpose registers)
|
||||
|
||||
**6/** @AgileJebrim
|
||||
|
||||
@NOTimothyLottes Almost sounding like we need an alternative IR to SPIR-V. One with predicated instructions and these wavefront-uniform registers/instructions. Maybe a PTX -> RDNA backend compiler?
|
||||
@NOTimothyLottes
|
||||
|
||||
Almost sounding like we need an alternative IR to SPIR-V. One with predicated instructions and these wavefront-uniform registers/instructions. Maybe a PTX -> RDNA backend compiler?
|
||||
|
||||
**7/** @NOTimothyLottes
|
||||
|
||||
@AgileJebrim As history goes, most re-writes fall into nearly the same problem as before. I'd rather have the fixes be applied to the existing stuff first (fix SPIR-V and GLSL, etc)
|
||||
@AgileJebrim
|
||||
|
||||
As history goes, most re-writes fall into nearly the same problem as before. I'd rather have the fixes be applied to the existing stuff first (fix SPIR-V and GLSL, etc)
|
||||
|
||||
**8/** @AgileJebrim
|
||||
|
||||
@NOTimothyLottes Perhaps. That existing PTX Vulkan extension does come to mind though.
|
||||
@NOTimothyLottes
|
||||
|
||||
Perhaps. That existing PTX Vulkan extension does come to mind though.
|
||||
|
||||
**9/** @CodePotrick
|
||||
|
||||
@AgileJebrim @NOTimothyLottes Its kinda annoying to put sgpr like logic in an ir tho as they have very specific limitations on each platform.
|
||||
@AgileJebrim @NOTimothyLottes
|
||||
|
||||
Its kinda annoying to put sgpr like logic in an ir tho as they have very specific limitations on each platform.
|
||||
|
||||
Generalizing them in an ir might actually be a pessimisation.
|
||||
|
||||
**10/** @CodePotrick
|
||||
|
||||
@AgileJebrim @NOTimothyLottes Amd for example can't do float ops on sgprs, so when you would allow float ops in the ir, amd has to move them to a vgpr, perform float op, move them back to sgpr for each ir-sgpr float op.
|
||||
@AgileJebrim @NOTimothyLottes
|
||||
|
||||
Amd for example can't do float ops on sgprs, so when you would allow float ops in the ir, amd has to move them to a vgpr, perform float op, move them back to sgpr for each ir-sgpr float op.
|
||||
|
||||
There are other examples for this.
|
||||
|
||||
@@ -74,25 +94,35 @@ And nvidias have even other constrains.
|
||||
|
||||
**11/** @AgileJebrim
|
||||
|
||||
@CodePotrick @NOTimothyLottes And what’s the alternative right now? Just keep it all in a VGPR all the time?
|
||||
@CodePotrick @NOTimothyLottes
|
||||
|
||||
And what’s the alternative right now? Just keep it all in a VGPR all the time?
|
||||
|
||||
**12/** @CodePotrick
|
||||
|
||||
@AgileJebrim @NOTimothyLottes Ideally you'd avoid any float ops as long as you can to keep things in sgprs if you need to save registers/want the uniformity.
|
||||
@AgileJebrim @NOTimothyLottes
|
||||
|
||||
Ideally you'd avoid any float ops as long as you can to keep things in sgprs if you need to save registers/want the uniformity.
|
||||
|
||||
If you need float ops on that var its probably best to keep it in vgprs if the alternative would be to transfer between sgpr and vgpr a lot
|
||||
|
||||
**13/** @AgileJebrim
|
||||
|
||||
@CodePotrick @NOTimothyLottes I wish I could work solely with integers all the time but if I did that on NV hardware, I’d be losing half the available ALUs.
|
||||
@CodePotrick @NOTimothyLottes
|
||||
|
||||
I wish I could work solely with integers all the time but if I did that on NV hardware, I’d be losing half the available ALUs.
|
||||
|
||||
**14/** @AgileJebrim
|
||||
|
||||
@CodePotrick @NOTimothyLottes I haven’t looked closely at AMD hardware since I don’t work with it much.
|
||||
@CodePotrick @NOTimothyLottes
|
||||
|
||||
I haven’t looked closely at AMD hardware since I don’t work with it much.
|
||||
|
||||
**15/** @CodePotrick
|
||||
|
||||
@AgileJebrim @NOTimothyLottes they have their actual isa public and inspectable which is really nice to know whats actually happening.
|
||||
@AgileJebrim @NOTimothyLottes
|
||||
|
||||
they have their actual isa public and inspectable which is really nice to know whats actually happening.
|
||||
|
||||
Rga is also really good. Feels like im more in control with amd compared to nvidia.
|
||||
|
||||
@@ -100,7 +130,9 @@ Maybe thats just the low level gremlin in my speaking tho ;).
|
||||
|
||||
**16/** @AgileJebrim
|
||||
|
||||
@CodePotrick @NOTimothyLottes I do have access to some of NVIDIA’s NDA documentation and tools…
|
||||
@CodePotrick @NOTimothyLottes
|
||||
|
||||
I do have access to some of NVIDIA’s NDA documentation and tools…
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1868492851170205803"
|
||||
|
||||
**1/** @axelgneiting
|
||||
|
||||
@NOTimothyLottes @kechogarcia I'm well aware. It's really curious they still stick to this design after so many years.
|
||||
@NOTimothyLottes @kechogarcia
|
||||
|
||||
I'm well aware. It's really curious they still stick to this design after so many years.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+15
-5
@@ -33,25 +33,35 @@ in_reply_to: ""
|
||||
|
||||
**2/** @kechogarcia
|
||||
|
||||
@NOTimothyLottes Dxc hlsl sm 6.5 lets you index into ResourceDescriptorHeap directly and cast to whatever resource type. That and mutable vulkan descriptors, you wouldn't need to go the buffer Zoo route.... But then dxc spirv ...
|
||||
@NOTimothyLottes
|
||||
|
||||
Dxc hlsl sm 6.5 lets you index into ResourceDescriptorHeap directly and cast to whatever resource type. That and mutable vulkan descriptors, you wouldn't need to go the buffer Zoo route.... But then dxc spirv ...
|
||||
|
||||
**3/** @NOTimothyLottes
|
||||
|
||||
@kechogarcia Read<32,64,128>(uint64_t base, uint32_t offset, uint32_t immediate, uint32_t cacheControl, uint32_t format);
|
||||
@kechogarcia
|
||||
|
||||
Read<32,64,128>(uint64_t base, uint32_t offset, uint32_t immediate, uint32_t cacheControl, uint32_t format);
|
||||
|
||||
And be done with this stupid mess
|
||||
|
||||
**4/** @axelgneiting
|
||||
|
||||
@NOTimothyLottes @kechogarcia NVidia can't just do random format conversions without it being a texture descriptor I thought?
|
||||
@NOTimothyLottes @kechogarcia
|
||||
|
||||
NVidia can't just do random format conversions without it being a texture descriptor I thought?
|
||||
|
||||
**5/** @NOTimothyLottes
|
||||
|
||||
@axelgneiting @kechogarcia Can get the non-conversion {signed/unsigned short/int/long and half/float/double, of {1-4} components}. Which is good enough to start the interface. Then yes for NV you'd need to alias via a storage_texel_buffer to get {10:11:11,10:10:10:2,<u/s>norm*}
|
||||
@axelgneiting @kechogarcia
|
||||
|
||||
Can get the non-conversion {signed/unsigned short/int/long and half/float/double, of {1-4} components}. Which is good enough to start the interface. Then yes for NV you'd need to alias via a storage_texel_buffer to get {10:11:11,10:10:10:2,<u/s>norm*}
|
||||
|
||||
**6/** @NOTimothyLottes
|
||||
|
||||
@axelgneiting @kechogarcia Then there are rough edges to TEXEL_BUFFER
|
||||
@axelgneiting @kechogarcia
|
||||
|
||||
Then there are rough edges to TEXEL_BUFFER
|
||||
|
||||
9-bit shared 5-bit E -> read only NV, no AMD
|
||||
sRGB -> yes NV, no AMD
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1868716773937414589"
|
||||
|
||||
**1/** @AgileJebrim
|
||||
|
||||
@NOTimothyLottes @GustavSterbrant Fair enough. Current compilers are a bloated mess anyways and you’d get much faster times with your own assembler.
|
||||
@NOTimothyLottes @GustavSterbrant
|
||||
|
||||
Fair enough. Current compilers are a bloated mess anyways and you’d get much faster times with your own assembler.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+12
-4
@@ -27,18 +27,26 @@ in_reply_to: ""
|
||||
|
||||
**1/** @NOTimothyLottes
|
||||
|
||||
@GustavSterbrant So I don't know that SPIR-V vs OpTypeInt 24 question, but if someone didn't write tests for that it's likely never been setup to be pattern matched. Most of the problems I see cannot be fixed just by bypassing GLSL and doing SPIR-V directly. So not yet tempted to write a new SL
|
||||
@GustavSterbrant
|
||||
|
||||
So I don't know that SPIR-V vs OpTypeInt 24 question, but if someone didn't write tests for that it's likely never been setup to be pattern matched. Most of the problems I see cannot be fixed just by bypassing GLSL and doing SPIR-V directly. So not yet tempted to write a new SL
|
||||
|
||||
**2/** @AgileJebrim
|
||||
|
||||
@NOTimothyLottes @GustavSterbrant If you’re targeting a console with AMD hardware, why don’t you just rewrite the backend compiler? I assume you have the source for it too, so it’s more tweaking an existing compiler than anything else?
|
||||
@NOTimothyLottes @GustavSterbrant
|
||||
|
||||
If you’re targeting a console with AMD hardware, why don’t you just rewrite the backend compiler? I assume you have the source for it too, so it’s more tweaking an existing compiler than anything else?
|
||||
|
||||
**3/** @NOTimothyLottes
|
||||
|
||||
@AgileJebrim @GustavSterbrant At-home stuff (aka non-employer) targets Vulkan Windows mostly (unfortunately). No interface in AMD's Windows driver to load binary shaders into Vulkan. If SteamOS ever fully took over PC gaming, then certainly I'd just go direct to the AMD kernel driver and bypass user-mode VK
|
||||
@AgileJebrim @GustavSterbrant
|
||||
|
||||
At-home stuff (aka non-employer) targets Vulkan Windows mostly (unfortunately). No interface in AMD's Windows driver to load binary shaders into Vulkan. If SteamOS ever fully took over PC gaming, then certainly I'd just go direct to the AMD kernel driver and bypass user-mode VK
|
||||
|
||||
**4/** @NOTimothyLottes
|
||||
|
||||
@AgileJebrim @GustavSterbrant Also I wouldn't just modify an existing compiler, I'd just write an assembler specific for GCN/RDNA/whateversNext family.
|
||||
@AgileJebrim @GustavSterbrant
|
||||
|
||||
Also I wouldn't just modify an existing compiler, I'd just write an assembler specific for GCN/RDNA/whateversNext family.
|
||||
|
||||
Branches: [[archive/threads/NOTimothyLottes/2024-12-16-so-i-dont-know-that-spir-v-vs-optypeint-24/2024-12-16-AgileJebrim-fair-enough-current-compilers-are-a-bloated-mess]]
|
||||
+9
-3
@@ -28,15 +28,21 @@ parent_post_id: "1870343645926224197"
|
||||
|
||||
**1/** @AgileJebrim
|
||||
|
||||
@NOTimothyLottes Have you tried using the Intel cache controls extension I shared earlier to see if they work on AMD?
|
||||
@NOTimothyLottes
|
||||
|
||||
Have you tried using the Intel cache controls extension I shared earlier to see if they work on AMD?
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@AgileJebrim Not enough free time. Given that AMD's compiler has some serious correctness bugs ignoring memory qualifiers, I doubt they implemented the Intel extension.
|
||||
@AgileJebrim
|
||||
|
||||
Not enough free time. Given that AMD's compiler has some serious correctness bugs ignoring memory qualifiers, I doubt they implemented the Intel extension.
|
||||
|
||||
**3/** @NOTimothyLottes
|
||||
|
||||
@AgileJebrim Will say though that if they ever implement a WMMA access extension (I don't know if they did or didn't yet), and they don't have streaming memory qualifier support they are just shooting their own AI stock$$$ gold rush foot off.
|
||||
@AgileJebrim
|
||||
|
||||
Will say though that if they ever implement a WMMA access extension (I don't know if they did or didn't yet), and they don't have streaming memory qualifier support they are just shooting their own AI stock$$$ gold rush foot off.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1875589737282679108"
|
||||
|
||||
**1/** @marc_b_reynolds
|
||||
|
||||
@NOTimothyLottes It's pretty amazing how good the Hastings approximations still are. I'd note that they are designed for minimizing absolute error which isn't what you'd want for general purpose usage but it's the right answer for "all angles are equally important" problems.
|
||||
@NOTimothyLottes
|
||||
|
||||
It's pretty amazing how good the Hastings approximations still are. I'd note that they are designed for minimizing absolute error which isn't what you'd want for general purpose usage but it's the right answer for "all angles are equally important" problems.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+9
-3
@@ -28,7 +28,9 @@ parent_post_id: "1875583660545732960"
|
||||
|
||||
**1/** @JBrooksBSI
|
||||
|
||||
@NOTimothyLottes Some optimization ideas:
|
||||
@NOTimothyLottes
|
||||
|
||||
Some optimization ideas:
|
||||
|
||||
1) For RDNA2 simd, insn-dependency stalls make it unlikely to achieve 100% VALU utilization. Try unrolling 2x or 4x
|
||||
|
||||
@@ -38,11 +40,15 @@ parent_post_id: "1875583660545732960"
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@JBrooksBSI Lack of ABS modifiers on V_PK ops basically kills FP16 benefit here unfortunately. I do unroll when not VGPR limited (favorite optimization). Wary though of SALU/VALU crossings due to latency + scheduling behavior (loss of operand cache, etc). VCC probably has special forwarding
|
||||
@JBrooksBSI
|
||||
|
||||
Lack of ABS modifiers on V_PK ops basically kills FP16 benefit here unfortunately. I do unroll when not VGPR limited (favorite optimization). Wary though of SALU/VALU crossings due to latency + scheduling behavior (loss of operand cache, etc). VCC probably has special forwarding
|
||||
|
||||
**3/** @JBrooksBSI
|
||||
|
||||
@NOTimothyLottes I did an approx equal-area mapping to a 2D texture in 2018
|
||||
@NOTimothyLottes
|
||||
|
||||
I did an approx equal-area mapping to a 2D texture in 2018
|
||||
|
||||
Approach was to map sphere to Archimedean solid rhombicuboctahedron (triangles and squares) packed into a 2D texture
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1875589737282679108"
|
||||
|
||||
**1/** @pixelmager
|
||||
|
||||
@NOTimothyLottes I was looking at a very similar problem for hemi-octahedrons recently. I definitely need to revisit in the context of this EAM paper, I ended up with a pretty slow polar-coordinate-remapping instead to move precision to the horizon https://www.shadertoy.com/view/wsBXzD
|
||||
@NOTimothyLottes
|
||||
|
||||
I was looking at a very similar problem for hemi-octahedrons recently. I definitely need to revisit in the context of this EAM paper, I ended up with a pretty slow polar-coordinate-remapping instead to move precision to the horizon https://www.shadertoy.com/view/wsBXzD
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+9
-3
@@ -28,15 +28,21 @@ parent_post_id: "1883580512171942335"
|
||||
|
||||
**1/** @bmcnett
|
||||
|
||||
@NOTimothyLottes My take is similar, but I also feel that a lot of processing is best done predictively in parallel across multiple future frames, one SIMD lane per future frame
|
||||
@NOTimothyLottes
|
||||
|
||||
My take is similar, but I also feel that a lot of processing is best done predictively in parallel across multiple future frames, one SIMD lane per future frame
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@bmcnett Don't necessarily want to store all predictions raw though. One of the advantages of say simple things like baked directional lightmaps is that one keeps the data for multiple "frames" (or views) in a compressed form until just right before usage, and it's mis-predict safe
|
||||
@bmcnett
|
||||
|
||||
Don't necessarily want to store all predictions raw though. One of the advantages of say simple things like baked directional lightmaps is that one keeps the data for multiple "frames" (or views) in a compressed form until just right before usage, and it's mis-predict safe
|
||||
|
||||
**3/** @bmcnett
|
||||
|
||||
@NOTimothyLottes Yeah, you need to store many prediction outputs in compressed form, with the time dimension being one over which you compress, in addition to whatever spatial dimensions are relevant
|
||||
@NOTimothyLottes
|
||||
|
||||
Yeah, you need to store many prediction outputs in compressed form, with the time dimension being one over which you compress, in addition to whatever spatial dimensions are relevant
|
||||
|
||||
Limited hw support for that, sadly
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1883591956598845661"
|
||||
|
||||
**1/** @noop_dev
|
||||
|
||||
@NOTimothyLottes I thought framegen was just an offspring of mpeg2 motion prediction, at least how it was in TVs for 15 years.
|
||||
@NOTimothyLottes
|
||||
|
||||
I thought framegen was just an offspring of mpeg2 motion prediction, at least how it was in TVs for 15 years.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+18
-6
@@ -28,29 +28,41 @@ parent_post_id: "1883569959286313322"
|
||||
|
||||
**1/** @Varaquilex
|
||||
|
||||
@NOTimothyLottes A visualization of said cold caches on a CS workload from Timothy's GDC 2018 Engine Optimization Hot Lap slides: https://gpuopen.com/wp-content/uploads/2018/05/gdc_2018_sponsored_engine_optimization_hot_lap.pptx
|
||||
@NOTimothyLottes
|
||||
|
||||
A visualization of said cold caches on a CS workload from Timothy's GDC 2018 Engine Optimization Hot Lap slides: https://gpuopen.com/wp-content/uploads/2018/05/gdc_2018_sponsored_engine_optimization_hot_lap.pptx
|
||||
|
||||

|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@Varaquilex Amazingly unfortunate that AMD still doesn't release the tool that those instruction trace captures had been visualized on. It's the best and most useful tool period I've ever seen at any company in the industry.
|
||||
@Varaquilex
|
||||
|
||||
Amazingly unfortunate that AMD still doesn't release the tool that those instruction trace captures had been visualized on. It's the best and most useful tool period I've ever seen at any company in the industry.
|
||||
|
||||
**3/** @NOTimothyLottes
|
||||
|
||||
@Varaquilex If they did choose to release it, I'd teach the world how to use it well, for free. For hardcore optimization it is close to ideal. RGP doesn't start to really show you what you need to know to make good hardcore engineering decisions on AMD hardware.
|
||||
@Varaquilex
|
||||
|
||||
If they did choose to release it, I'd teach the world how to use it well, for free. For hardcore optimization it is close to ideal. RGP doesn't start to really show you what you need to know to make good hardcore engineering decisions on AMD hardware.
|
||||
|
||||
**4/** @NOTimothyLottes
|
||||
|
||||
@Varaquilex This is a hint for someone like Valve who could take their RADV SQTT (https://www.phoronix.com/news/RADV-SQTT-Profiling-Support) interface and build something truly transformative for GPU shader engineering
|
||||
@Varaquilex
|
||||
|
||||
This is a hint for someone like Valve who could take their RADV SQTT (https://www.phoronix.com/news/RADV-SQTT-Profiling-Support) interface and build something truly transformative for GPU shader engineering
|
||||
|
||||
**5/** @NOTimothyLottes
|
||||
|
||||
@Varaquilex Mix that kind of visualization tool with a good shader compiler (and HW intrinsics) and basically it's the kind of crack a serious GPU shader dev cannot say no too
|
||||
@Varaquilex
|
||||
|
||||
Mix that kind of visualization tool with a good shader compiler (and HW intrinsics) and basically it's the kind of crack a serious GPU shader dev cannot say no too
|
||||
|
||||
**6/** @Varaquilex
|
||||
|
||||
@NOTimothyLottes That tool was one of the most insightful tools I have ever used. I do miss it. It would really be awesome to see it released to the public.
|
||||
@NOTimothyLottes
|
||||
|
||||
That tool was one of the most insightful tools I have ever used. I do miss it. It would really be awesome to see it released to the public.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+9
-3
@@ -59,17 +59,23 @@ Note one can inline something like CAS/RCAS (what I did at AMD) into the custom
|
||||
|
||||
**6/** @dankbaker
|
||||
|
||||
@NOTimothyLottes Is there an example shader that does that custom resolve?
|
||||
@NOTimothyLottes
|
||||
|
||||
Is there an example shader that does that custom resolve?
|
||||
|
||||
**7/** @NOTimothyLottes
|
||||
|
||||
@dankbaker Probably not in the config you are interested in (I'm assuming spatial with no scaling?) Feel free to DM me. Most of these things need adaption specific to the config. Last one I did was huge spatial scaling for a CRT-styled scalar using this kernel,
|
||||
@dankbaker
|
||||
|
||||
Probably not in the config you are interested in (I'm assuming spatial with no scaling?) Feel free to DM me. Most of these things need adaption specific to the config. Last one I did was huge spatial scaling for a CRT-styled scalar using this kernel,
|
||||
|
||||

|
||||
|
||||
**8/** @NOTimothyLottes
|
||||
|
||||
@dankbaker My project is monochome so the kernel blending logic is single channel, and the content is designed to handle a huge amount of negative lobe well so I don't constrain ringing (BLUE, replace with 'm.y*RINGING'), and everything in linear of course ... but it should provide an idea
|
||||
@dankbaker
|
||||
|
||||
My project is monochome so the kernel blending logic is single channel, and the content is designed to handle a huge amount of negative lobe well so I don't constrain ringing (BLUE, replace with 'm.y*RINGING'), and everything in linear of course ... but it should provide an idea
|
||||
|
||||

|
||||
|
||||
|
||||
+6
-2
@@ -28,11 +28,15 @@ parent_post_id: "1884360689093091618"
|
||||
|
||||
**1/** @NOTimothyLottes
|
||||
|
||||
@MichalDrobot My mindset is more tuned towards rendering without minSampleShading and using the temporal component to get the shading resolution up since base frame rate will be high anyway. So no soft VRS in my line of thinking either (other than whatever falls out of 8xMSAA render)
|
||||
@MichalDrobot
|
||||
|
||||
My mindset is more tuned towards rendering without minSampleShading and using the temporal component to get the shading resolution up since base frame rate will be high anyway. So no soft VRS in my line of thinking either (other than whatever falls out of 8xMSAA render)
|
||||
|
||||
**2/** @MichalDrobot
|
||||
|
||||
@NOTimothyLottes That’s pretty much exactly the mindset and what ended up shipping in Killzone Shadow Fall (4xMSAA -> 2x scaling + TAA) and in FarCry4 8xMSAA FMask only + analytical resolve + TAA
|
||||
@NOTimothyLottes
|
||||
|
||||
That’s pretty much exactly the mindset and what ended up shipping in Killzone Shadow Fall (4xMSAA -> 2x scaling + TAA) and in FarCry4 8xMSAA FMask only + analytical resolve + TAA
|
||||
Doing sub samples in FC4 was challenging due to all that AT foliage.
|
||||
|
||||
## Related
|
||||
|
||||
+36
-12
@@ -33,57 +33,81 @@ Branches: [[archive/threads/NOTimothyLottes/2025-01-28-so-we-the-industry-really
|
||||
|
||||
**2/** @MichalDrobot
|
||||
|
||||
@NOTimothyLottes Hey that’s literally what our VRS is doing with all those tricks and more. We just don’t call it an upsampler ; )
|
||||
@NOTimothyLottes
|
||||
|
||||
Hey that’s literally what our VRS is doing with all those tricks and more. We just don’t call it an upsampler ; )
|
||||
On PC we resolve MSAA to texture2DArray to retain plane separation benefits for bandwidth and coherency
|
||||
|
||||
**3/** @NOTimothyLottes
|
||||
|
||||
@MichalDrobot Larger differences are
|
||||
@MichalDrobot
|
||||
|
||||
Larger differences are
|
||||
(1.) Your VRS is PSL'ing to a regular grid? (need the actual 8x pattern for what I'm suggesting)
|
||||
(2.) Sounds like you are getting benefit from FMASK due to the soft VRS, but for what I'm suggesting the NV flat+DCC layout is way better
|
||||
|
||||
**4/** @MichalDrobot
|
||||
|
||||
@NOTimothyLottes 1) it’s 4xMSAA but we DRS only on X axis which is matching your case I believe. Similar how it was done it Killzone Shadowfall.
|
||||
@NOTimothyLottes
|
||||
|
||||
1) it’s 4xMSAA but we DRS only on X axis which is matching your case I believe. Similar how it was done it Killzone Shadowfall.
|
||||
8xMSAA we could explore XY scaling
|
||||
2) depends. On PC it’s flat /w DCC. On gen8 it’s fmask packed. Gen9 is FMask with DCC plane0/1
|
||||
|
||||
**5/** @MichalDrobot
|
||||
|
||||
@NOTimothyLottes But sure I agree that 8x is the way to go for 4K. Our challenge is that we still have gen8 with 1k target and at those resolutions 8x scales really sub linear due to quad occupancy
|
||||
@NOTimothyLottes
|
||||
|
||||
But sure I agree that 8x is the way to go for 4K. Our challenge is that we still have gen8 with 1k target and at those resolutions 8x scales really sub linear due to quad occupancy
|
||||
|
||||
**6/** @NOTimothyLottes
|
||||
|
||||
@MichalDrobot I guess the question then is if you implement variable spatial scaling in the custom resolve, is the 8xMSAA loss something that can easily be covered by increased spatial scale on the low end HW? 8x area scaling at 8xMSAA is still likely good for 3xAA on edges at spatial-only
|
||||
@MichalDrobot
|
||||
|
||||
I guess the question then is if you implement variable spatial scaling in the custom resolve, is the 8xMSAA loss something that can easily be covered by increased spatial scale on the low end HW? 8x area scaling at 8xMSAA is still likely good for 3xAA on edges at spatial-only
|
||||
|
||||
Branches: [[archive/threads/NOTimothyLottes/2025-01-28-so-we-the-industry-really-ever-went-back-to-the/2025-01-28-NOTimothyLottes-my-mindset-is-more-tuned-towards-rendering]]
|
||||
|
||||
**7/** @MichalDrobot
|
||||
|
||||
@NOTimothyLottes If low end hw is decent with MSAA AND you can control triangle density effectively to combat quad occupancy loss (we can’t) - that’s the best there is imo.
|
||||
@NOTimothyLottes
|
||||
|
||||
If low end hw is decent with MSAA AND you can control triangle density effectively to combat quad occupancy loss (we can’t) - that’s the best there is imo.
|
||||
FWIW that’s why we use stencil even for geo edges for MSAA - because we get too many interior edges that don’t do anything
|
||||
|
||||
**8/** @NOTimothyLottes
|
||||
|
||||
@MichalDrobot I see, yes once authoring pushes tri/pix density then what makes sense changes. I was thinking more of the way things had been authored in the relief mapping era.
|
||||
@MichalDrobot
|
||||
|
||||
I see, yes once authoring pushes tri/pix density then what makes sense changes. I was thinking more of the way things had been authored in the relief mapping era.
|
||||
|
||||
**9/** @MichalDrobot
|
||||
|
||||
@NOTimothyLottes Then you need invest heavily into visbuffer for “simple draws” and pay setup price to compensate those deficiencies. involved pipeline that is not portable
|
||||
@NOTimothyLottes
|
||||
|
||||
Then you need invest heavily into visbuffer for “simple draws” and pay setup price to compensate those deficiencies. involved pipeline that is not portable
|
||||
I can totally see your plan working for specific art styles or more retro gaming. There is a huge Indy market for this
|
||||
|
||||
**10/** @NOTimothyLottes
|
||||
|
||||
@MichalDrobot If tri/pix density is high, even if there are some huge triangles left, without substantially good multi-scale LOD (meaning cluster count scaling), I think soft culling alone falls off the !/$ curve for scaling - hints perhaps past the crossover for non-triangle rendering
|
||||
@MichalDrobot
|
||||
|
||||
If tri/pix density is high, even if there are some huge triangles left, without substantially good multi-scale LOD (meaning cluster count scaling), I think soft culling alone falls off the !/$ curve for scaling - hints perhaps past the crossover for non-triangle rendering
|
||||
|
||||
**11/** @NOTimothyLottes
|
||||
|
||||
@MichalDrobot At that stage I'd have transitioned to direct final view reconstruction from object space domain. Walking object space, atomicMin(MSB{z,ref}LSB) at some good enough density into the final projected space, then use a neighborhood of 'refs' to get back to object space neighborhoods
|
||||
@MichalDrobot
|
||||
|
||||
At that stage I'd have transitioned to direct final view reconstruction from object space domain. Walking object space, atomicMin(MSB{z,ref}LSB) at some good enough density into the final projected space, then use a neighborhood of 'refs' to get back to object space neighborhoods
|
||||
|
||||
**12/** @NOTimothyLottes
|
||||
|
||||
@MichalDrobot ... for the filtering. One can effectively cancel atomics per lane based on local projected screen-space density to deal with domain stretch (skinning), so it gets to be highly scalable.
|
||||
@MichalDrobot
|
||||
|
||||
... for the filtering. One can effectively cancel atomics per lane based on local projected screen-space density to deal with domain stretch (skinning), so it gets to be highly scalable.
|
||||
|
||||
**13/** @NOTimothyLottes
|
||||
|
||||
@MichalDrobot The TAA reconstructions all crossed that threshold of cost where it's easy to swap in reconstruction from something other than screen-space. And with no disocclusion trouble, object space is much less of a challenge to go from.
|
||||
@MichalDrobot
|
||||
|
||||
The TAA reconstructions all crossed that threshold of cost where it's easy to swap in reconstruction from something other than screen-space. And with no disocclusion trouble, object space is much less of a challenge to go from.
|
||||
@@ -130,8 +130,12 @@ I think ultimately those in the industry who don't like the current status quo,
|
||||
|
||||
**17/** @0xpatrickhan
|
||||
|
||||
@NOTimothyLottes What are some problem areas you think need to be tackled? I’ve read some of what you’ve written in response to some of the gripes of modern day temporal supersampling/AA. What else? Anything that IHVs would be uniquely positioned to do?
|
||||
@NOTimothyLottes
|
||||
|
||||
What are some problem areas you think need to be tackled? I’ve read some of what you’ve written in response to some of the gripes of modern day temporal supersampling/AA. What else? Anything that IHVs would be uniquely positioned to do?
|
||||
|
||||
**18/** @NOTimothyLottes
|
||||
|
||||
@0xpatrickhan There is a laundry list of things IHVs dont expose or expose very poorly for basic compute shaders, making it quite difficult or impossible to get a compiler to do the right thing. Fix those and devs like myself could easily build better than AI tech options
|
||||
@0xpatrickhan
|
||||
|
||||
There is a laundry list of things IHVs dont expose or expose very poorly for basic compute shaders, making it quite difficult or impossible to get a compiler to do the right thing. Fix those and devs like myself could easily build better than AI tech options
|
||||
+6
-2
@@ -28,11 +28,15 @@ parent_post_id: "1912477061467304351"
|
||||
|
||||
**1/** @BoganBits
|
||||
|
||||
@NOTimothyLottes Could a shader compiler not do this? i.e. detect such inefficient code, and "re-vectorise" it, so to speak i.e. have each shader instance do 2 at once, interleaved
|
||||
@NOTimothyLottes
|
||||
|
||||
Could a shader compiler not do this? i.e. detect such inefficient code, and "re-vectorise" it, so to speak i.e. have each shader instance do 2 at once, interleaved
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@BoganBits This is something to be done at the dispatch level, not something a compiler knows about
|
||||
@BoganBits
|
||||
|
||||
This is something to be done at the dispatch level, not something a compiler knows about
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+6
-2
@@ -28,12 +28,16 @@ parent_post_id: "1912477061467304351"
|
||||
|
||||
**1/** @BoganBits
|
||||
|
||||
@NOTimothyLottes I would be interested to see a concrete example of this
|
||||
@NOTimothyLottes
|
||||
|
||||
I would be interested to see a concrete example of this
|
||||
ideally with a benchmark to show the improvement
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@BoganBits Early STP had a mode to pipeline the dependent passes, that was back when it was being developed out of Unity. That mode was way faster. But later it was removed because Unity wouldn't allow resources bound for read+write at the same time = fail.
|
||||
@BoganBits
|
||||
|
||||
Early STP had a mode to pipeline the dependent passes, that was back when it was being developed out of Unity. That mode was way faster. But later it was removed because Unity wouldn't allow resources bound for read+write at the same time = fail.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1912484261321392231"
|
||||
|
||||
**1/** @DjMolehill
|
||||
|
||||
@NOTimothyLottes branching, cache locality, and memory handling are key 🔥
|
||||
@NOTimothyLottes
|
||||
|
||||
branching, cache locality, and memory handling are key 🔥
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+24
-8
@@ -28,7 +28,9 @@ parent_post_id: "1912483968563269946"
|
||||
|
||||
**1/** @JBrooksBSI
|
||||
|
||||
@NOTimothyLottes I'd add:
|
||||
@NOTimothyLottes
|
||||
|
||||
I'd add:
|
||||
|
||||
Standardized, documented ISA that enables compatibility across multiple GPU generations (& max 256 VGPRs).
|
||||
|
||||
@@ -36,25 +38,35 @@ WGP (WorkGroup Processor) mode which doubles the # of SIMD units executing a sin
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@JBrooksBSI Personally I still don't like the WGP+wave32 stuff. Limited dual issue instructions with less operand flexibility (wave64 back to back issue IMO is better, just HW dual pipe transcendentals). WGP's two L0 cache and related resource split issues.
|
||||
@JBrooksBSI
|
||||
|
||||
Personally I still don't like the WGP+wave32 stuff. Limited dual issue instructions with less operand flexibility (wave64 back to back issue IMO is better, just HW dual pipe transcendentals). WGP's two L0 cache and related resource split issues.
|
||||
|
||||
**3/** @JBrooksBSI
|
||||
|
||||
@NOTimothyLottes WGP mode and wave32 are separate features. WGP mode schedules waves within a threadgroup across both CUs (4x SIMDs) in each WGP instead of limiting waves to a single CU (2x SIMD).
|
||||
@NOTimothyLottes
|
||||
|
||||
WGP mode and wave32 are separate features. WGP mode schedules waves within a threadgroup across both CUs (4x SIMDs) in each WGP instead of limiting waves to a single CU (2x SIMD).
|
||||
|
||||
**4/** @NOTimothyLottes
|
||||
|
||||
@JBrooksBSI Yeah so it's more the wave32 that I don't like
|
||||
@JBrooksBSI
|
||||
|
||||
Yeah so it's more the wave32 that I don't like
|
||||
|
||||
**5/** @JBrooksBSI
|
||||
|
||||
@NOTimothyLottes I'd like to discuss this in more detail, as I have found wave32 to be faster than wave64 for everything except some vertex shaders.
|
||||
@NOTimothyLottes
|
||||
|
||||
I'd like to discuss this in more detail, as I have found wave32 to be faster than wave64 for everything except some vertex shaders.
|
||||
|
||||
I think the reason wave64 can be faster for vertex shaders is that only half the VS waves get launched, so more occupancy for PS/CS waves per WGP.
|
||||
|
||||
**6/** @JBrooksBSI
|
||||
|
||||
@NOTimothyLottes The reasons Wave64 has been slower for me:
|
||||
@NOTimothyLottes
|
||||
|
||||
The reasons Wave64 has been slower for me:
|
||||
1) More VGPR pressure = less occupancy
|
||||
2) More GL0/LDS pressure = more stalls
|
||||
3) 64-lane scalar logic is slower than scalar 32
|
||||
@@ -64,7 +76,9 @@ I spot-unroll 2x-4x for more intra-wave parallelism as needed.
|
||||
|
||||
**7/** @NOTimothyLottes
|
||||
|
||||
@JBrooksBSI Re
|
||||
@JBrooksBSI
|
||||
|
||||
Re
|
||||
1) With what I do, high occupancy is often slower
|
||||
2) I rarely use LDS
|
||||
3) It's half the K$ loads for wave64
|
||||
@@ -72,7 +86,9 @@ I spot-unroll 2x-4x for more intra-wave parallelism as needed.
|
||||
|
||||
**8/** @JBrooksBSI
|
||||
|
||||
@NOTimothyLottes Wow, that is wildly different from what I do.
|
||||
@NOTimothyLottes
|
||||
|
||||
Wow, that is wildly different from what I do.
|
||||
|
||||
Why is high occupancy slower? (VGPR pressure? Cache pressure?)
|
||||
|
||||
|
||||
+9
-3
@@ -28,17 +28,23 @@ parent_post_id: "1917652589358858332"
|
||||
|
||||
**1/** @onatt0
|
||||
|
||||
@NOTimothyLottes holy truthnuke - and people think C is the optimal state of possible runtimes when it's a very limited runtime to have state mixed call/data-stacks
|
||||
@NOTimothyLottes
|
||||
|
||||
holy truthnuke - and people think C is the optimal state of possible runtimes when it's a very limited runtime to have state mixed call/data-stacks
|
||||
|
||||
not only you have to keep the whole stack around with replicated state, it limits to serialized execution instead of parallel
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@onatt0 I laugh when people say C is like assembly, they are missing what we actually did in assembly back then, which was all registers and globals and gotos, no stacks. It's radically different than good assembly.
|
||||
@onatt0
|
||||
|
||||
I laugh when people say C is like assembly, they are missing what we actually did in assembly back then, which was all registers and globals and gotos, no stacks. It's radically different than good assembly.
|
||||
|
||||
**3/** @onatt0
|
||||
|
||||
@NOTimothyLottes when C became *the* execution model, it restricted all future hardware, HW gets built with how the C compiler will compile to it instead of what's ultimately a good design and a malleable macro-lang to map to HW
|
||||
@NOTimothyLottes
|
||||
|
||||
when C became *the* execution model, it restricted all future hardware, HW gets built with how the C compiler will compile to it instead of what's ultimately a good design and a malleable macro-lang to map to HW
|
||||
|
||||
ofc a lot of people want portability so we went the boring route
|
||||
|
||||
|
||||
+9
-3
@@ -28,17 +28,23 @@ parent_post_id: "1917646466417381426"
|
||||
|
||||
**1/** @onatt0
|
||||
|
||||
@NOTimothyLottes IMO code compilation is inherently sequential+ "execution contextual", dynamic logic execution to get the binary as the essence vs a static lang
|
||||
@NOTimothyLottes
|
||||
|
||||
IMO code compilation is inherently sequential+ "execution contextual", dynamic logic execution to get the binary as the essence vs a static lang
|
||||
|
||||
codegen with execution on GPU could work as 2-items(vreg)/stack and 32K cells per lane for AI to map code to data instead of weights?
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@onatt0 So for x86 I've many times written code gen with extra nop-prefix padding to fix all instructions to a multiple of known 32-bits. Which means you know in advance sizing of everything, then you can easily do parallel code generation. So need not necessarily all be serial
|
||||
@onatt0
|
||||
|
||||
So for x86 I've many times written code gen with extra nop-prefix padding to fix all instructions to a multiple of known 32-bits. Which means you know in advance sizing of everything, then you can easily do parallel code generation. So need not necessarily all be serial
|
||||
|
||||
**3/** @NOTimothyLottes
|
||||
|
||||
@onatt0 However I'm often building then instantly using code while generating a baked binary to use later, so that regard much is inherently serially dependent. This bootstrapping technique is perhaps one the great things to learn from things like color forth IMO.
|
||||
@onatt0
|
||||
|
||||
However I'm often building then instantly using code while generating a baked binary to use later, so that regard much is inherently serially dependent. This bootstrapping technique is perhaps one the great things to learn from things like color forth IMO.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1917653265329594372"
|
||||
|
||||
**1/** @onatt0
|
||||
|
||||
@NOTimothyLottes simply brilliant!
|
||||
@NOTimothyLottes
|
||||
|
||||
simply brilliant!
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+21
-7
@@ -27,17 +27,23 @@ in_reply_to: ""
|
||||
|
||||
**1/** @NOTimothyLottes
|
||||
|
||||
@onatt0 [3] I got side tracked by building a language that could be assembled from on the GPU in SIMD. However now I ask myself if that is just adding "complexity", because if programs are bounded in size, why not just focus on CPU non-parallel nested factoring (aka the forth-like way)
|
||||
@onatt0
|
||||
|
||||
[3] I got side tracked by building a language that could be assembled from on the GPU in SIMD. However now I ask myself if that is just adding "complexity", because if programs are bounded in size, why not just focus on CPU non-parallel nested factoring (aka the forth-like way)
|
||||
|
||||
Branches: [[archive/threads/NOTimothyLottes/2025-04-30-3-i-got-side-tracked-by-building-a-language-that/2025-04-30-onatt0-imo-code-compilation-is-inherently-sequential]]
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@onatt0 [4] 2-item data stack is an interesting compromise. Something I never considered. I left off ripping out the data stack completely.
|
||||
@onatt0
|
||||
|
||||
[4] 2-item data stack is an interesting compromise. Something I never considered. I left off ripping out the data stack completely.
|
||||
|
||||
**3/** @NOTimothyLottes
|
||||
|
||||
@onatt0 [5] Can do this instead,
|
||||
@onatt0
|
||||
|
||||
[5] Can do this instead,
|
||||
a. Track a "top" register (number)
|
||||
b. Use symbols to override top register
|
||||
c. Have push (store) just advance top to next reg (in circular queue)
|
||||
@@ -45,20 +51,28 @@ Gets to easy unnamed arguments
|
||||
|
||||
**4/** @NOTimothyLottes
|
||||
|
||||
@onatt0 [6] You mentioned VK is most "form filling" which I think is an accurate description. For most "C" like APIs I like to just lay out all the arguments in memory like a tape drive in the order that functions get called and source that tape at runtime for the calls ...
|
||||
@onatt0
|
||||
|
||||
[6] You mentioned VK is most "form filling" which I think is an accurate description. For most "C" like APIs I like to just lay out all the arguments in memory like a tape drive in the order that functions get called and source that tape at runtime for the calls ...
|
||||
|
||||
**5/** @NOTimothyLottes
|
||||
|
||||
@onatt0 [7] They key concept here is that "common" arguments like the device are pushed onto the tape using store duplication when they are known (after device creation). So it's preemptive scatter, so later at call time there is no argument gather.
|
||||
@onatt0
|
||||
|
||||
[7] They key concept here is that "common" arguments like the device are pushed onto the tape using store duplication when they are known (after device creation). So it's preemptive scatter, so later at call time there is no argument gather.
|
||||
|
||||
**6/** @NOTimothyLottes
|
||||
|
||||
@onatt0 [8] Likely the majority of C/C++/OOP/bloatware is just shuffling data around in argument gather to support the concept of data stacks on HW that has no physical data stack.
|
||||
@onatt0
|
||||
|
||||
[8] Likely the majority of C/C++/OOP/bloatware is just shuffling data around in argument gather to support the concept of data stacks on HW that has no physical data stack.
|
||||
|
||||
Branches: [[archive/threads/NOTimothyLottes/2025-04-30-3-i-got-side-tracked-by-building-a-language-that/2025-04-30-onatt0-holy-truthnuke-and-people-think-c-is-the-optimal]]
|
||||
|
||||
**7/** @NOTimothyLottes
|
||||
|
||||
@onatt0 [9] Could just pre-layout call arguments in order of usage, leverage data compression at init-time to unpack into memory before run-time. No more code to shuffle arguments, or set registers to immediates, etc. Just a common (cached) pre-call to consume args from the "tape"
|
||||
@onatt0
|
||||
|
||||
[9] Could just pre-layout call arguments in order of usage, leverage data compression at init-time to unpack into memory before run-time. No more code to shuffle arguments, or set registers to immediates, etc. Just a common (cached) pre-call to consume args from the "tape"
|
||||
|
||||
Branches: [[archive/threads/NOTimothyLottes/2025-04-30-3-i-got-side-tracked-by-building-a-language-that/2025-04-30-onatt0-simply-brilliant]]
|
||||
+27
-9
@@ -28,28 +28,40 @@ parent_post_id: "1917613300902146419"
|
||||
|
||||
**1/** @NOTimothyLottes
|
||||
|
||||
@onatt0 Related thoughts/
|
||||
@onatt0
|
||||
|
||||
Related thoughts/
|
||||
[0] Having a low upper bound on the maximum complexity allowed in a program enables so much simplification. One can always move complexity into data, while keeping tight codebases.
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@onatt0 [1] Seems like you group symbols into pages where each page can have a string (shared with all symbols in the page), which when pared with limited fixed maximum symbol string size, is an elegant way of effectively supporting larger naming [I'll probably steal that idea next time]
|
||||
@onatt0
|
||||
|
||||
[1] Seems like you group symbols into pages where each page can have a string (shared with all symbols in the page), which when pared with limited fixed maximum symbol string size, is an elegant way of effectively supporting larger naming [I'll probably steal that idea next time]
|
||||
|
||||
**3/** @NOTimothyLottes
|
||||
|
||||
@onatt0 [2] I'm also a big fan of how you used 16:9 aspect to auto render all the debug info, symbol tables, disassembly, etc, alongside the source. I think many people are probably lost in the speed at which you can manipulate and test ideas while working on the source
|
||||
@onatt0
|
||||
|
||||
[2] I'm also a big fan of how you used 16:9 aspect to auto render all the debug info, symbol tables, disassembly, etc, alongside the source. I think many people are probably lost in the speed at which you can manipulate and test ideas while working on the source
|
||||
|
||||
**4/** @NOTimothyLottes
|
||||
|
||||
@onatt0 [3] I got side tracked by building a language that could be assembled from on the GPU in SIMD. However now I ask myself if that is just adding "complexity", because if programs are bounded in size, why not just focus on CPU non-parallel nested factoring (aka the forth-like way)
|
||||
@onatt0
|
||||
|
||||
[3] I got side tracked by building a language that could be assembled from on the GPU in SIMD. However now I ask myself if that is just adding "complexity", because if programs are bounded in size, why not just focus on CPU non-parallel nested factoring (aka the forth-like way)
|
||||
|
||||
**5/** @NOTimothyLottes
|
||||
|
||||
@onatt0 [4] 2-item data stack is an interesting compromise. Something I never considered. I left off ripping out the data stack completely.
|
||||
@onatt0
|
||||
|
||||
[4] 2-item data stack is an interesting compromise. Something I never considered. I left off ripping out the data stack completely.
|
||||
|
||||
**6/** @NOTimothyLottes
|
||||
|
||||
@onatt0 [5] Can do this instead,
|
||||
@onatt0
|
||||
|
||||
[5] Can do this instead,
|
||||
a. Track a "top" register (number)
|
||||
b. Use symbols to override top register
|
||||
c. Have push (store) just advance top to next reg (in circular queue)
|
||||
@@ -57,15 +69,21 @@ Gets to easy unnamed arguments
|
||||
|
||||
**7/** @NOTimothyLottes
|
||||
|
||||
@onatt0 [6] You mentioned VK is most "form filling" which I think is an accurate description. For most "C" like APIs I like to just lay out all the arguments in memory like a tape drive in the order that functions get called and source that tape at runtime for the calls ...
|
||||
@onatt0
|
||||
|
||||
[6] You mentioned VK is most "form filling" which I think is an accurate description. For most "C" like APIs I like to just lay out all the arguments in memory like a tape drive in the order that functions get called and source that tape at runtime for the calls ...
|
||||
|
||||
**8/** @NOTimothyLottes
|
||||
|
||||
@onatt0 [7] They key concept here is that "common" arguments like the device are pushed onto the tape using store duplication when they are known (after device creation). So it's preemptive scatter, so later at call time there is no argument gather.
|
||||
@onatt0
|
||||
|
||||
[7] They key concept here is that "common" arguments like the device are pushed onto the tape using store duplication when they are known (after device creation). So it's preemptive scatter, so later at call time there is no argument gather.
|
||||
|
||||
**9/** @NOTimothyLottes
|
||||
|
||||
@onatt0 [8] Likely the majority of C/C++/OOP/bloatware is just shuffling data around in argument gather to support the concept of data stacks on HW that has no physical data stack.
|
||||
@onatt0
|
||||
|
||||
[8] Likely the majority of C/C++/OOP/bloatware is just shuffling data around in argument gather to support the concept of data stacks on HW that has no physical data stack.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -27,4 +27,6 @@ in_reply_to: "1917653631651729876"
|
||||
|
||||
**1/** @NOTimothyLottes
|
||||
|
||||
@onatt0 I laugh when people say C is like assembly, they are missing what we actually did in assembly back then, which was all registers and globals and gotos, no stacks. It's radically different than good assembly.
|
||||
@onatt0
|
||||
|
||||
I laugh when people say C is like assembly, they are missing what we actually did in assembly back then, which was all registers and globals and gotos, no stacks. It's radically different than good assembly.
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1948009807161721332"
|
||||
|
||||
**1/** @Karyuutensei
|
||||
|
||||
@NOTimothyLottes Where does the restart number come from? I assume this is how many times you exited the code and started again automatically using your batch script?
|
||||
@NOTimothyLottes
|
||||
|
||||
Where does the restart number come from? I assume this is how many times you exited the code and started again automatically using your batch script?
|
||||
|
||||
**2/**
|
||||
|
||||
|
||||
+27
-9
@@ -33,44 +33,62 @@ in_reply_to: ""
|
||||
|
||||
**2/** @Karyuutensei
|
||||
|
||||
@NOTimothyLottes Do you also automatically generate the include files or do you just write them yourself?
|
||||
@NOTimothyLottes
|
||||
|
||||
Do you also automatically generate the include files or do you just write them yourself?
|
||||
|
||||
**3/** @NOTimothyLottes
|
||||
|
||||
@Karyuutensei I only include __FILE__ (self). For WIN32 and VK even, I recreate the parts of external headers I need (use) inside the 'one source file', typically with structural type changes to switch back to simple types like 64 bit intergers instead of pointers. Trying to get to C--
|
||||
@Karyuutensei
|
||||
|
||||
I only include __FILE__ (self). For WIN32 and VK even, I recreate the parts of external headers I need (use) inside the 'one source file', typically with structural type changes to switch back to simple types like 64 bit intergers instead of pointers. Trying to get to C--
|
||||
|
||||
**4/** @NOTimothyLottes
|
||||
|
||||
@Karyuutensei One side effect, even with C code the compilation is perceptually instant for the whole program. The other thing I do is mix the GLSL and C all in the same file, so I share defines. I do have one external include for the compiled SPIR-V ...
|
||||
@Karyuutensei
|
||||
|
||||
One side effect, even with C code the compilation is perceptually instant for the whole program. The other thing I do is mix the GLSL and C all in the same file, so I share defines. I do have one external include for the compiled SPIR-V ...
|
||||
|
||||
**5/** @NOTimothyLottes
|
||||
|
||||
@Karyuutensei For the SPIR-V, I also have one program, but I use specialization constants set at PSO generation to select the code path for a specific 'shader'. This requires spriv opt as a pre-processor else the IHV compilers tend to be 10x or more slower.
|
||||
@Karyuutensei
|
||||
|
||||
For the SPIR-V, I also have one program, but I use specialization constants set at PSO generation to select the code path for a specific 'shader'. This requires spriv opt as a pre-processor else the IHV compilers tend to be 10x or more slower.
|
||||
|
||||
**6/** @NOTimothyLottes
|
||||
|
||||
@Karyuutensei During dev time I use 2 terminals each with their own shell scripts. The first is to just loop and keep regenerating the SPIR-V if anything in the 'one file' changes. This is unfortunately a mess to do in a batch file (below)
|
||||
@Karyuutensei
|
||||
|
||||
During dev time I use 2 terminals each with their own shell scripts. The first is to just loop and keep regenerating the SPIR-V if anything in the 'one file' changes. This is unfortunately a mess to do in a batch file (below)
|
||||
|
||||

|
||||
|
||||
**7/** @NOTimothyLottes
|
||||
|
||||
@Karyuutensei The second does the same for the C program, loops recompiling and running the program. So when I'm editing source I can just fast exit the program and it restarts [with instant restart/reload it is quite fast to restart]
|
||||
@Karyuutensei
|
||||
|
||||
The second does the same for the C program, loops recompiling and running the program. So when I'm editing source I can just fast exit the program and it restarts [with instant restart/reload it is quite fast to restart]
|
||||
|
||||

|
||||
|
||||
**8/** @NOTimothyLottes
|
||||
|
||||
@Karyuutensei I'm using GCC on Windows, because why bother with having to install Visual Studio or it's compiler tool chain mess. I just do MINGW64 and be done with it. My debugger is the instant restart for C code, and shader reload for GLSL
|
||||
@Karyuutensei
|
||||
|
||||
I'm using GCC on Windows, because why bother with having to install Visual Studio or it's compiler tool chain mess. I just do MINGW64 and be done with it. My debugger is the instant restart for C code, and shader reload for GLSL
|
||||
|
||||
**9/** @NOTimothyLottes
|
||||
|
||||
@Karyuutensei I don't use standard C libs or anything like that. I just write my own stuff. For 'printf' style debugging I have macros that write to a memory mapped log file. They give {[restartNumber]|[msSinceLaunch]|[sourceLine]|[hex]|[dec]|[comment]}. Keeping multiple restarts in same log
|
||||
@Karyuutensei
|
||||
|
||||
I don't use standard C libs or anything like that. I just write my own stuff. For 'printf' style debugging I have macros that write to a memory mapped log file. They give {[restartNumber]|[msSinceLaunch]|[sourceLine]|[hex]|[dec]|[comment]}. Keeping multiple restarts in same log
|
||||
|
||||

|
||||
|
||||
**10/** @NOTimothyLottes
|
||||
|
||||
@Karyuutensei That log example is a simple test program, it starts in 0.3 ms for that run. The log tells all about how it pipelines start up {doing memory page warming, kart load, window setup, VK setup in parallel, getting to PSO gen as fast as possible [get layout done first]}
|
||||
@Karyuutensei
|
||||
|
||||
That log example is a simple test program, it starts in 0.3 ms for that run. The log tells all about how it pipelines start up {doing memory page warming, kart load, window setup, VK setup in parallel, getting to PSO gen as fast as possible [get layout done first]}
|
||||
|
||||

|
||||
+24
-8
@@ -28,35 +28,51 @@ parent_post_id: "1950935464149483683"
|
||||
|
||||
**1/** @AgileJebrim
|
||||
|
||||
@NOTimothyLottes SPIR-V. I’ve given up on trying to massage frontend compilers to do exactly what I want. I’m just letting others write in whatever shader language they want and then taking the SPIR-V it generates and reoptimizing it the way I want it.
|
||||
@NOTimothyLottes
|
||||
|
||||
SPIR-V. I’ve given up on trying to massage frontend compilers to do exactly what I want. I’m just letting others write in whatever shader language they want and then taking the SPIR-V it generates and reoptimizing it the way I want it.
|
||||
|
||||
**2/** @AgileJebrim
|
||||
|
||||
@NOTimothyLottes One of the motivating factors is the fact that people already have a bunch of existing code, so the less work needed on their part to rewrite it, the better.
|
||||
@NOTimothyLottes
|
||||
|
||||
One of the motivating factors is the fact that people already have a bunch of existing code, so the less work needed on their part to rewrite it, the better.
|
||||
|
||||
**3/** @NOTimothyLottes
|
||||
|
||||
@AgileJebrim If IHV compilers all handled well the case where the SPIR-V skips most SSA and leverages OpLoad/Store to global shader data (as in registers not memory), it might be a lot more tractable to go direct to SPIR-V.
|
||||
@AgileJebrim
|
||||
|
||||
If IHV compilers all handled well the case where the SPIR-V skips most SSA and leverages OpLoad/Store to global shader data (as in registers not memory), it might be a lot more tractable to go direct to SPIR-V.
|
||||
|
||||
**4/** @AgileJebrim
|
||||
|
||||
@NOTimothyLottes I’m forcing the case where each invocation has access to a full 256 registers, which should hopefully limit the whole SSA/register spill problem. I haven’t tried intentionally breaking SSA though. Even if I did, there’s no way such UB would ever be certifiable.
|
||||
@NOTimothyLottes
|
||||
|
||||
I’m forcing the case where each invocation has access to a full 256 registers, which should hopefully limit the whole SSA/register spill problem. I haven’t tried intentionally breaking SSA though. Even if I did, there’s no way such UB would ever be certifiable.
|
||||
|
||||
**5/** @NOTimothyLottes
|
||||
|
||||
@AgileJebrim I don't know of any case where 256 registers had acceptable performance. And that includes IHV hand assembly. Full unrolling on GCN needed at least 2 waves/SIMD (128 regs max). And I personally target around 64 for anything going through a compiler.
|
||||
@AgileJebrim
|
||||
|
||||
I don't know of any case where 256 registers had acceptable performance. And that includes IHV hand assembly. Full unrolling on GCN needed at least 2 waves/SIMD (128 regs max). And I personally target around 64 for anything going through a compiler.
|
||||
|
||||
**6/** @NOTimothyLottes
|
||||
|
||||
@AgileJebrim Note on some newer AMD GPUs they increased the regfile by 50% I think, which would be a 96 max reg target
|
||||
@AgileJebrim
|
||||
|
||||
Note on some newer AMD GPUs they increased the regfile by 50% I think, which would be a 96 max reg target
|
||||
|
||||
**7/** @NOTimothyLottes
|
||||
|
||||
@AgileJebrim Some of the larger problems with compilers is common sub-expression elimination. Meaning they will take out intentional recoputation or reloads and add register pressure. Often one has to fake a different value by ORing to a dynamic loaded zero (not known at compiler time)
|
||||
@AgileJebrim
|
||||
|
||||
Some of the larger problems with compilers is common sub-expression elimination. Meaning they will take out intentional recoputation or reloads and add register pressure. Often one has to fake a different value by ORing to a dynamic loaded zero (not known at compiler time)
|
||||
|
||||
**8/** @NOTimothyLottes
|
||||
|
||||
@AgileJebrim Meaning at medium levels of complexity the compilers are always going way over the register budget you'd target with hand written ASM. SSA ensures this. There are no aliasing hints in the IR.
|
||||
@AgileJebrim
|
||||
|
||||
Meaning at medium levels of complexity the compilers are always going way over the register budget you'd target with hand written ASM. SSA ensures this. There are no aliasing hints in the IR.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+15
-5
@@ -28,23 +28,33 @@ parent_post_id: "1950935464149483683"
|
||||
|
||||
**1/** @olson_dan
|
||||
|
||||
@NOTimothyLottes What's the top "something else"? I've been out of the space for a while.
|
||||
@NOTimothyLottes
|
||||
|
||||
What's the top "something else"? I've been out of the space for a while.
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@olson_dan Wanting to build something that effectively loads/stores a 'cart' file which contains all the 'code+data' of the game in a restartable package. The code cannot be GLSL because I'm not going to link in a huge compiler. Leaves something that generates SPIR-V on the fly. New lang
|
||||
@olson_dan
|
||||
|
||||
Wanting to build something that effectively loads/stores a 'cart' file which contains all the 'code+data' of the game in a restartable package. The code cannot be GLSL because I'm not going to link in a huge compiler. Leaves something that generates SPIR-V on the fly. New lang
|
||||
|
||||
**3/** @EskilSteenberg
|
||||
|
||||
@NOTimothyLottes @olson_dan For a long time i have contemplated writing a small GLSL->SPIR-V compiler. I think you could get away with something very simple, if you are conservative with your language use.
|
||||
@NOTimothyLottes @olson_dan
|
||||
|
||||
For a long time i have contemplated writing a small GLSL->SPIR-V compiler. I think you could get away with something very simple, if you are conservative with your language use.
|
||||
|
||||
**4/** @NOTimothyLottes
|
||||
|
||||
@EskilSteenberg @olson_dan Have a crazy idea for GPU shader dev inspired by a C64 SID tracker where you have a 'pattern' for the 'instrument' which shows SID fx changing over time, along with the standard multi-channel pattern nestily using the instrument ...
|
||||
@EskilSteenberg @olson_dan
|
||||
|
||||
Have a crazy idea for GPU shader dev inspired by a C64 SID tracker where you have a 'pattern' for the 'instrument' which shows SID fx changing over time, along with the standard multi-channel pattern nestily using the instrument ...
|
||||
|
||||
**5/** @NOTimothyLottes
|
||||
|
||||
@EskilSteenberg @olson_dan ... Effectively a macro assembly language style thing where defines can be played back interleaved for things like ILP or loop unrolling etc. But programmer controlling interleaving, and register offsets, etc. Then ultimately output to SPIR-V direct (no GLSL step).
|
||||
@EskilSteenberg @olson_dan
|
||||
|
||||
... Effectively a macro assembly language style thing where defines can be played back interleaved for things like ILP or loop unrolling etc. But programmer controlling interleaving, and register offsets, etc. Then ultimately output to SPIR-V direct (no GLSL step).
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1951591243328135279"
|
||||
|
||||
**1/** @NOTimothyLottes
|
||||
|
||||
@onatt0 @EskilSteenberg @olson_dan So far the plan is to have the data read/write from the GPU, but still use the CPU to do the SPIR-V generation from said data.
|
||||
@onatt0 @EskilSteenberg @olson_dan
|
||||
|
||||
So far the plan is to have the data read/write from the GPU, but still use the CPU to do the SPIR-V generation from said data.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+12
-4
@@ -37,15 +37,21 @@ Meaning I write using macros that are mostly a 1:1 mapping to AMDs GCN/RDNA ISA.
|
||||
|
||||
**3/** @JBrooksBSI
|
||||
|
||||
@NOTimothyLottes Sounds like an RDNA->SPIRV asm converter tool would be the way to go
|
||||
@NOTimothyLottes
|
||||
|
||||
Sounds like an RDNA->SPIRV asm converter tool would be the way to go
|
||||
|
||||
**4/** @NOTimothyLottes
|
||||
|
||||
@JBrooksBSI I part tried to GLSL once. Using a global uint4 array as registers. But the wrapping of bit aliasing typecasts around operations is loaded with compiler perf bugs. Esp with packed 16-bit. So making it usable in practice is quite hard.
|
||||
@JBrooksBSI
|
||||
|
||||
I part tried to GLSL once. Using a global uint4 array as registers. But the wrapping of bit aliasing typecasts around operations is loaded with compiler perf bugs. Esp with packed 16-bit. So making it usable in practice is quite hard.
|
||||
|
||||
**5/** @JBrooksBSI
|
||||
|
||||
@NOTimothyLottes What I do for console dev is write RDNA2 asm on PS5 (via wrapped shader intrinsics).
|
||||
@NOTimothyLottes
|
||||
|
||||
What I do for console dev is write RDNA2 asm on PS5 (via wrapped shader intrinsics).
|
||||
|
||||
On Xbox I have the wrappers implement C versions of the intrinsics (or HLSL intrinsics where available).
|
||||
|
||||
@@ -55,4 +61,6 @@ This is a technique I have been using since 2006, for PS3 SPU coding:
|
||||
|
||||
**6/** @NOTimothyLottes
|
||||
|
||||
@JBrooksBSI Eventually I ended up the same way (writing via instruction defines). Originally when I did FXAA it was a 1:1 line mapping to NV ISA. But without factoring through a define. But it's really the custom register allocation that I wish was universally expressible today.
|
||||
@JBrooksBSI
|
||||
|
||||
Eventually I ended up the same way (writing via instruction defines). Originally when I did FXAA it was a 1:1 line mapping to NV ISA. But without factoring through a define. But it's really the custom register allocation that I wish was universally expressible today.
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1950860870818439202"
|
||||
|
||||
**1/** @0x44_
|
||||
|
||||
@NOTimothyLottes Assembly isn't hard, it's just platform specific, which makes it tedious.
|
||||
@NOTimothyLottes
|
||||
|
||||
Assembly isn't hard, it's just platform specific, which makes it tedious.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1950860870818439202"
|
||||
|
||||
**1/** @2Sexy4MyGPU
|
||||
|
||||
@NOTimothyLottes It was never hard, just tedious.
|
||||
@NOTimothyLottes
|
||||
|
||||
It was never hard, just tedious.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+12
-4
@@ -28,15 +28,21 @@ parent_post_id: "1950860870818439202"
|
||||
|
||||
**1/** @CUDAHandbook
|
||||
|
||||
@NOTimothyLottes I have been writing assembly for almost 40 years. The reason we say it is hard, is because it takes more effort to write than higher-level languages like C. Of course it’s doable, but portability between CPU architecture alone makes assembly only worth doing when warranted.
|
||||
@NOTimothyLottes
|
||||
|
||||
I have been writing assembly for almost 40 years. The reason we say it is hard, is because it takes more effort to write than higher-level languages like C. Of course it’s doable, but portability between CPU architecture alone makes assembly only worth doing when warranted.
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@CUDAHandbook I'm hoping to show how to make it less tedious than C
|
||||
@CUDAHandbook
|
||||
|
||||
I'm hoping to show how to make it less tedious than C
|
||||
|
||||
**3/** @Alleycatsphinx
|
||||
|
||||
@NOTimothyLottes @CUDAHandbook My major problem with programming is the tedium.
|
||||
@NOTimothyLottes @CUDAHandbook
|
||||
|
||||
My major problem with programming is the tedium.
|
||||
|
||||
GLSL Sandbox is still the best IDE I've ever used...
|
||||
|
||||
@@ -44,7 +50,9 @@ Live code with instant update, simple automatic version control, cross platform
|
||||
|
||||
**4/** @NOTimothyLottes
|
||||
|
||||
@Alleycatsphinx @CUDAHandbook I love live systems as "the IDE". This time probably with function keys as a pallet of 'save/restore' points (snapshot the entire project, as one file).
|
||||
@Alleycatsphinx @CUDAHandbook
|
||||
|
||||
I love live systems as "the IDE". This time probably with function keys as a pallet of 'save/restore' points (snapshot the entire project, as one file).
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+6
-2
@@ -28,11 +28,15 @@ parent_post_id: "1950860870818439202"
|
||||
|
||||
**1/** @Karyuutensei
|
||||
|
||||
@NOTimothyLottes Unrelated, but I would also love a look at your CRTs and how you use them in everyday stuff.
|
||||
@NOTimothyLottes
|
||||
|
||||
Unrelated, but I would also love a look at your CRTs and how you use them in everyday stuff.
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@Karyuutensei Showing that setup would be fun. Most of my active CRTs are hooked up to vintage consoles though.
|
||||
@Karyuutensei
|
||||
|
||||
Showing that setup would be fun. Most of my active CRTs are hooked up to vintage consoles though.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1950860870818439202"
|
||||
|
||||
**1/** @NickDrisc0ll
|
||||
|
||||
@NOTimothyLottes I'm sure it would be invaluable
|
||||
@NOTimothyLottes
|
||||
|
||||
I'm sure it would be invaluable
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1950860870818439202"
|
||||
|
||||
**1/** @PunteroCrudo
|
||||
|
||||
@NOTimothyLottes I would, and I think more people would be interested.
|
||||
@NOTimothyLottes
|
||||
|
||||
I would, and I think more people would be interested.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+6
-2
@@ -28,11 +28,15 @@ parent_post_id: "1950860870818439202"
|
||||
|
||||
**1/** @SquaredApe
|
||||
|
||||
@NOTimothyLottes Given I've only done ASM on Amiga with Devpac, I guess it's probably a limited take, but I enjoyed it and didn't find it harder than say something like C, mostly because the problems I solved back then were 2D domain and the hardware was pretty simple... but not too hard?
|
||||
@NOTimothyLottes
|
||||
|
||||
Given I've only done ASM on Amiga with Devpac, I guess it's probably a limited take, but I enjoyed it and didn't find it harder than say something like C, mostly because the problems I solved back then were 2D domain and the hardware was pretty simple... but not too hard?
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@SquaredApe ASM could be a pain when mixing with high level languages due to the constant manual register and stack shuffling, but with what I have in mind will factor that out.
|
||||
@SquaredApe
|
||||
|
||||
ASM could be a pain when mixing with high level languages due to the constant manual register and stack shuffling, but with what I have in mind will factor that out.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+6
-2
@@ -28,11 +28,15 @@ parent_post_id: "1950860870818439202"
|
||||
|
||||
**1/** @Stererence
|
||||
|
||||
@NOTimothyLottes I've been doing assembly a bit in D with the inline assembler and it's very fun to the point where it's too distracting for me, I don't really get why people are so averse to it generally.
|
||||
@NOTimothyLottes
|
||||
|
||||
I've been doing assembly a bit in D with the inline assembler and it's very fun to the point where it's too distracting for me, I don't really get why people are so averse to it generally.
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@Stererence Inline assembly in GCC has been a cornerstone of my C code for a long time.
|
||||
@Stererence
|
||||
|
||||
Inline assembly in GCC has been a cornerstone of my C code for a long time.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1950860870818439202"
|
||||
|
||||
**1/** @VicThorDev6
|
||||
|
||||
@NOTimothyLottes A lot of people who claim assembly is hard just never did any themselves. In my opinion reading or even programming things in assembly isn't very hard but actually doing some of the optimizations compilers might do seems a lot harder
|
||||
@NOTimothyLottes
|
||||
|
||||
A lot of people who claim assembly is hard just never did any themselves. In my opinion reading or even programming things in assembly isn't very hard but actually doing some of the optimizations compilers might do seems a lot harder
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1950860870818439202"
|
||||
|
||||
**1/** @_naf_90
|
||||
|
||||
@NOTimothyLottes I’m learning assembly in my spare time
|
||||
@NOTimothyLottes
|
||||
|
||||
I’m learning assembly in my spare time
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1950860870818439202"
|
||||
|
||||
**1/** @biovf
|
||||
|
||||
@NOTimothyLottes I would definitely watch that 🙂
|
||||
@NOTimothyLottes
|
||||
|
||||
I would definitely watch that 🙂
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1950860870818439202"
|
||||
|
||||
**1/** @cyberbemon
|
||||
|
||||
@NOTimothyLottes I'd love to watch that.
|
||||
@NOTimothyLottes
|
||||
|
||||
I'd love to watch that.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1950860870818439202"
|
||||
|
||||
**1/** @furan
|
||||
|
||||
@NOTimothyLottes There are a lot of "watch me write this app in assembly" yt videos
|
||||
@NOTimothyLottes
|
||||
|
||||
There are a lot of "watch me write this app in assembly" yt videos
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1950860870818439202"
|
||||
|
||||
**1/** @furan
|
||||
|
||||
@NOTimothyLottes would watch though
|
||||
@NOTimothyLottes
|
||||
|
||||
would watch though
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+6
-2
@@ -28,7 +28,9 @@ parent_post_id: "1950860870818439202"
|
||||
|
||||
**1/** @konigssohne
|
||||
|
||||
@NOTimothyLottes If you're got a blank `canvas` go for it.
|
||||
@NOTimothyLottes
|
||||
|
||||
If you're got a blank `canvas` go for it.
|
||||
Interfacing to a kernel interrupt is one thing, hooking up to a toolkit ui is another I haven't ever seen, in asm.
|
||||
|
||||
That leaves it all to command lines.
|
||||
@@ -36,7 +38,9 @@ And meh.
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@konigssohne Look at the older music trackers. All ASM and quite good UIs from a workflow efficiency perspective. They don't emulate a 'windowing system UI' for good reason, it wouldn't ever be as good as what they did do.
|
||||
@konigssohne
|
||||
|
||||
Look at the older music trackers. All ASM and quite good UIs from a workflow efficiency perspective. They don't emulate a 'windowing system UI' for good reason, it wouldn't ever be as good as what they did do.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+15
-5
@@ -28,25 +28,35 @@ parent_post_id: "1950860870818439202"
|
||||
|
||||
**1/** @leonard_coder
|
||||
|
||||
@NOTimothyLottes I'm still doing assembly as hobby :) ( 68k assembly, x64 assembly is not as fun to write).
|
||||
@NOTimothyLottes
|
||||
|
||||
I'm still doing assembly as hobby :) ( 68k assembly, x64 assembly is not as fun to write).
|
||||
I'm interested to see such a tutorial, but please change a bit your font size and coding style :)
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
|
||||
@leonard_coder I think people get confused with my screen gabs because they are on 4k panels and I run low res CRTs (so the bitmap fonts are not small for me). Also I think most of my strange C syntax is to make it more assembly like, so won't all be there in ASM
|
||||
@leonard_coder
|
||||
|
||||
I think people get confused with my screen gabs because they are on 4k panels and I run low res CRTs (so the bitmap fonts are not small for me). Also I think most of my strange C syntax is to make it more assembly like, so won't all be there in ASM
|
||||
|
||||
**3/** @leonard_coder
|
||||
|
||||
@NOTimothyLottes oh you're on low res CRT? that explain a lot, I was always really surprised by your 3x5 pixels look-alike font :)
|
||||
@NOTimothyLottes
|
||||
|
||||
oh you're on low res CRT? that explain a lot, I was always really surprised by your 3x5 pixels look-alike font :)
|
||||
But yeah Vulkan triangle setup code in assembly is something, I'm in!
|
||||
|
||||
**4/** @NOTimothyLottes
|
||||
|
||||
@leonard_coder Oh, yeah, I should disclose, no triangles will be harmed or even used in this project, it's PS-free, or CS-only. All gfx generated the vintage PC way, just on compute GPUs, in human crafted logic instead of fixed function HW.
|
||||
@leonard_coder
|
||||
|
||||
Oh, yeah, I should disclose, no triangles will be harmed or even used in this project, it's PS-free, or CS-only. All gfx generated the vintage PC way, just on compute GPUs, in human crafted logic instead of fixed function HW.
|
||||
|
||||
**5/** @leonard_coder
|
||||
|
||||
@NOTimothyLottes it's even better! (at least to me)
|
||||
@NOTimothyLottes
|
||||
|
||||
it's even better! (at least to me)
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1950860870818439202"
|
||||
|
||||
**1/** @m6502
|
||||
|
||||
@NOTimothyLottes I would enjoy watching that.
|
||||
@NOTimothyLottes
|
||||
|
||||
I would enjoy watching that.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1950860870818439202"
|
||||
|
||||
**1/** @mmalex
|
||||
|
||||
@NOTimothyLottes i agree, if one is ok with 'bottom up' thinking. 99% of my self taught early programming was asm, from demos to music editors (trackers) & it was a joy to work so directly with the machine. im convinced it still underlies my preference/prejudice for straightforward style of code
|
||||
@NOTimothyLottes
|
||||
|
||||
i agree, if one is ok with 'bottom up' thinking. 99% of my self taught early programming was asm, from demos to music editors (trackers) & it was a joy to work so directly with the machine. im convinced it still underlies my preference/prejudice for straightforward style of code
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1950860870818439202"
|
||||
|
||||
**1/** @mu_chrinovic
|
||||
|
||||
@NOTimothyLottes definitely interested in anything you put out
|
||||
@NOTimothyLottes
|
||||
|
||||
definitely interested in anything you put out
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1950860870818439202"
|
||||
|
||||
**1/** @nullspector
|
||||
|
||||
@NOTimothyLottes I would so love that!
|
||||
@NOTimothyLottes
|
||||
|
||||
I would so love that!
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1950860870818439202"
|
||||
|
||||
**1/** @o__boga
|
||||
|
||||
@NOTimothyLottes I'm staying maybe for Vulkan, depending on how manageable it gets to me. (Assembly or not)
|
||||
@NOTimothyLottes
|
||||
|
||||
I'm staying maybe for Vulkan, depending on how manageable it gets to me. (Assembly or not)
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
+3
-1
@@ -28,7 +28,9 @@ parent_post_id: "1950860870818439202"
|
||||
|
||||
**1/** @opdroid1234
|
||||
|
||||
@NOTimothyLottes i would!
|
||||
@NOTimothyLottes
|
||||
|
||||
i would!
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
Loaded 100 of 422 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user