I really like this idea of generating SDF's with pathfinder btw, it would give me atleast some dynamic scalability range, and it would take the pressure off of your core for AR/VR as well.
-
-
Replying to @rikarends @pcwalton
Those GPU times are pretty great, but still 'huge' for a 120hz mobile device. Do you need do al the cpu tiles again when the camera changes? Or can you leave them be.
1 reply 0 retweets 0 likes -
Replying to @rikarends
You have to redo all the CPU tiles, but you can reproject them at some loss in quality (on VR I just do them once and reproject to both eyes). BTW I want to eventually move CPU tile generation to GPU, but I’m not sure it will be a win.
1 reply 0 retweets 1 like -
Replying to @pcwalton
So i'd say keep a healthy load on the CPU, the GPU is busy doing all them AR/VR things at high framerates :)
1 reply 0 retweets 0 likes -
Replying to @rikarends
That’s the idea, yeah. I want to have an optional path to do everything on GPU, but only if it’s proven to be a win (i.e. if the CPU would otherwise be idle it’s not a win). There’s more overhead when doing everything on GPU in compute shader.
2 replies 0 retweets 0 likes -
Replying to @pcwalton @rikarends
(BTW, SDF only works on monochrome images, so it can’t be a general solution anyhow.)
1 reply 0 retweets 0 likes -
Replying to @pcwalton
Well yea but you could then just render a nice sdf texture for a layer of vector data, like a font glyph or some other design element.
2 replies 0 retweets 0 likes -
Replying to @rikarends
Doesn’t work, too much memory for complicated stuff. I did the math for e.g. the Dutch rail map and it was something like 100GB of memory required.
1 reply 0 retweets 0 likes -
Replying to @pcwalton
Do note i'm not saying general solution here, this is trying to approach delivering a vector api 'differently' to the programmer.
1 reply 0 retweets 0 likes -
Replying to @rikarends @pcwalton
Lets say custom AR/VR dataviz with 10.000s of elements all showing a different color vector element. You don't need to process 10.000 of them, you can do one and instance it 10kx
2 replies 0 retweets 0 likes
Oh sure, in that case you can just do instancing of a single set of tiles. Just saying it’s not a general solution. BTW, generating tiles that can be cached and repeatedly blitted is one of the core use cases I’ve always had in mind.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.