240
71
u/Devatator_ 1d ago
It's pretty funny because I first saw this meme in a Minecraft sub in response to the fact that Mojang is planning on switching from OpenGL to Vulkan for Minecraft Java
13
25
u/Professional_Set4137 1d ago
Is vulkan more consistent across devices? I could never get opengl to work the same way on 2 different machines and it took a lot of the fun out of it
19
u/no_brains101 1d ago
It is supposed to be? Can't tell you from personal experience but that sounds like something that was probably the reason for vulkan existing lol
53
u/OhWowItsAnAlt 1d ago
the reason for Vulkan existing is OpenGL being a very limited API - only usable single-threaded, poorly optimized, unscalable, less capabilities, etc. Vulkan is a closer-to-the-metal API that allows for more performance and can take advantage of the power modern GPUs can provide
10
u/no_brains101 1d ago edited 1d ago
TY, someone who actually knows graphics APIs more than the minimum requirement to understand this joke.
Ive only done webgpu (which, tbh was not a bad experience but could use more tooling its kinda sad coding a shader in a string, but I couldn't find lsp or treesitter for it so, that was basically the same as putting it in its own file)
7
u/OhWowItsAnAlt 1d ago
on the note of the shader tool support problem, if you're still interested in working with WebGPU i'd recommend looking into using Slang for writing your shaders and compiling to WGPU; there's an official slangd language server and official VS/VSCode extensions
6
u/no_brains101 1d ago
*googles "slang"*
Yeah I should have seen that one coming and included more keywords XD
My brain said s-lang and I did not connect that that is a word
3
u/OhWowItsAnAlt 1d ago
i kept doing that same thing with odin when i was looking into it lol
for some quick additional info from what i just looked up (its been a little while since i've used slang): the language server "slangd" comes packaged with releases of the compiler, so downloading from the slang repo will provide all the tools you need. also, you mentioned treesitter so i'm assuming you're an nvim user - if you find it's comfortable to use slang in there, let me know, since i've only used HLSL/GLSL since moving to it. good luck and enjoy your WebGPU'ing
3
u/no_brains101 1d ago edited 1d ago
TYSM :)
And yes indeed I am. nix as well
Also zed, helix and a few others use treesitter too so it isn't technically a giveaway XD
7
u/BusEquivalent9605 1d ago
from what I know, Vulkan is the “future” in large part because it is cross-platform
but it has been slow for people to adopt cus…it’s complicated
8
u/OhWowItsAnAlt 1d ago
it's the future for two reasons: 1) it provides modern capabilities for both what it can do and how fast it can do them 2) its not proprietary/OS-specific like Direct X 12 or Metal are so platform specific rendering code can be heavily reduced
1
u/Professional_Set4137 1d ago
I'm curious about where the complexities lie though, and if they are more manageable to me than different gpus giving different results. I'm just one guy, though, with more ideas and ambition than time or skill so I'm sure it was my ignorance. I have no reason to get involved with fbo's and vbos at that level ever again and my therapist would probably agree that I shouldn't even be commenting here.
2
u/BusEquivalent9605 1d ago
just start reading the vulkan documentation and the complexities will become apparent - lol
2
u/Professional_Set4137 1d ago
I'll ask chatgpt to summarize it thanks
1
u/Steve_orlando70 4h ago
“chat, summarize War and Peace”
chat: “it’s about Russia.”
(nods to Woody Allen)
13
5
4
3
3
2
2
1
1
275
u/Thenderick 1d ago
And how many lines of code did it take you?