Hacker News new | past | comments | ask | show | jobs | submit login
Optimizing an Open Source Texture Synthesis Library (peterstefek.me)
29 points by underanalyzer on July 27, 2020 | hide | past | favorite | 1 comment



Interesting, it starts maybe a bit dull (and uses "micro-optimization" wrong IMO, I tend to use them for stuff that doesn't optimize a lot the runtime of a given function), but gets better when it talks of an issue with profiling in debug mode, and then of a thread contentention issue.

A note about that specific library: why isn't texture generation used more in videogames? Nowadays, a game contains tens of gigabytes of textures and models (~80 GB or more). Certainly there is a point at which it becomes worth it to procedurally generate the texture instead of storing multi-megabyte images for every object in the world. What would that point be?

Are GPUs fast enough to generate textures on-demand nowadays, in the pixel shader, for instance? An additional benefit would be that mipmaps might not be necessary anymore, depending on the algorithm.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: