Vulkan is HARD

  Рет қаралды 70,703

lolzdev

lolzdev

Күн бұрын

Пікірлер: 160
@lolzdev
@lolzdev 2 жыл бұрын
Hey guys, if you liked the video and you want to suggest me the topic of the next video feel free to write it here!
@deassisbarroso2515
@deassisbarroso2515 2 жыл бұрын
I suggest a content about console emulation with vulkan or making a game with vulkan and comparing the performance with opengl
@daniking7524
@daniking7524 2 жыл бұрын
I would like to see WGPU related videos
@Alexciaooo
@Alexciaooo 2 жыл бұрын
Bel video, ti meriti più iscritti. Io di solito non ci capisco niente anche perchè faccio solo gamedev con Unity, però in questo caso hai spiegato benissimo e ho capito tutto. (I assumed you were Italian, if you don't understand tell me and I'll write the comment in English)
@lolzdev
@lolzdev 2 жыл бұрын
@@Alexciaooo grazie, sinceramente sono molto contento del risultato inaspettato e fa sempre piacere vedere che ci sono anche italiani che vedono i miei video.
@TheSensationalMr.Science
@TheSensationalMr.Science 2 жыл бұрын
2:50 um, I don't think you need the code within initVulkan()... it's already within createInstance(). why not just call createInstance(), initVulkan() instead? do you really need that extra layer of boilerplate within the code? it's still getting initialized in the main app run function. EDIT: 6:31 ohhhhh other things get initialized in there... got it, now that makes sense. Hope you have a great day & Safe Travels!
@richardsinclair7661
@richardsinclair7661 2 жыл бұрын
I actually didn't realize how new Vulkan was. At least in comparison to OpenGL and DirectX. Now I understand why Vulkan support has been such a big deal for games, emulators and so on.
@pwf2k
@pwf2k 2 жыл бұрын
There's actually the OpenGL Debug Output extension, where you can register a debug callback function and listen for errors, performance warnings or notifications. Also the quick switching between the api docs and Vim deserves an epilepsy warning, it's a very harsh difference in brightness in short periods of time and sometimes basically flashing back and forth.
@mr.mirror1213
@mr.mirror1213 7 ай бұрын
Womp womp
@pwf2k
@pwf2k 7 ай бұрын
​@@mr.mirror1213 it's too late for a womp womp, when I watched this a year ago, the epileptic seizure I got fractured my ocular synapses 4-dimensionally and caused me to disintegrate into a pile of mushrooms. As a sentient pile of mushrooms, I simply don't understand what this "womp womp" is.
@LevmurQ_Q
@LevmurQ_Q 5 ай бұрын
@@pwf2k same, mush-bro
@YourCloseCoop
@YourCloseCoop Ай бұрын
Validation layers can't do shit if you're trying to unpack a null pointer lol
@pwf2k
@pwf2k Ай бұрын
​@@YourCloseCoop And neither can OpenGL's Debug Output, I don't understand what you're trying to say?
@kazeroth1234
@kazeroth1234 2 жыл бұрын
I love to see DevLog videos on Graphics Programming, Vulkan, OpenGL, etc... Please continue to make more, I look forward to it!
@__username1
@__username1 9 ай бұрын
The hardest part of vulkan for me is that I never know what to do next because there isn't a single comprehensive and rigorous explanation of vulkan's structure that I've ever seen. Every tutorial either expects you to know stuff already or to follow alonv and ask less questions
@HadesMrDark
@HadesMrDark 2 жыл бұрын
Great video, i don't have a specific topic to suggest, but just seeing more c++ vulkan stuff is interesting, goood luck.
@deassisbarroso2515
@deassisbarroso2515 2 жыл бұрын
Glad your video was recommended to me, I hope to follow your next content. Good first video.
@lolzdev
@lolzdev 2 жыл бұрын
Thanks! I'm going to create more content for sure, I have to think about the topic of the next video tho
@TFSned
@TFSned 2 жыл бұрын
Thanks for making this video. It's good to document some of the common issues you can have writing a Vulkan application from scratch. A problem I had was that my application was selecting the wrong GPU which didn't support the feature I was using. That's because the laptop had an integrated and discrete GPU, but the integrated GPU was given the index 0 and was being selected by default. Filtering the devices by supported features is a great solution.
@godnyx117
@godnyx117 Жыл бұрын
This may save me ass in the future! Thank you so much for sharing!
@inertia_dagger
@inertia_dagger Жыл бұрын
doom eternal of all games had the same problem for my friend, I don't know why
@baileyharrison1030
@baileyharrison1030 8 ай бұрын
It's probably fine to allow the user to select which GPU to use and check for compatibility with just that. If initialisation fails just ask the user to select another GPU from the list of physical devices. Otherwise it can get extremely complicated when you've got required extensions, optional extensions, required features, optional features, and the same for required and optional texture formats. Your program may succeed using the inferior GPU as it satisfies the required features but not the optional ones.
@talhagenc9401
@talhagenc9401 2 жыл бұрын
I sense 50% Indianness from this dude.
@MrBlackspoon
@MrBlackspoon 2 жыл бұрын
elon musk incoming
@debdutchakraborty8987
@debdutchakraborty8987 2 жыл бұрын
🤣
@dorktales254
@dorktales254 2 жыл бұрын
I guess he is big indian...
@CatChrist
@CatChrist 2 жыл бұрын
That means he knows what he's talking about. I'm sold.
@giacomol02
@giacomol02 2 жыл бұрын
He sounds Italian
@JefersonLimaAlmeida
@JefersonLimaAlmeida 2 жыл бұрын
Great video :) But take care when switching very fast between white documentation and black terminal :/
@lolzdev
@lolzdev 2 жыл бұрын
Thanks! I know that's kinda fleshy but I realised that too late, the video is speeded so I haven't noticed that until I finished editing. Will check this for sure next time!
@JefersonLimaAlmeida
@JefersonLimaAlmeida 2 жыл бұрын
No problem! You are doing a really great job, and your video really make me interested in try to program using Vulkan in the future, I was only a little worried with photosensitive persons watching your video without a warning :/ but anyway thanks for the video
@seccentral
@seccentral 2 жыл бұрын
:( this. it was very interesting information wise but very painful on the eyes
@Jacktherookie_
@Jacktherookie_ 2 жыл бұрын
@@lolzdev At it can cause seizure who is experiencing specific disease.
@LetrixAR
@LetrixAR 2 жыл бұрын
Please, use Dark Reader if you are going to switch windows constantly
@dnull
@dnull 2 жыл бұрын
see using dark theme all the time made your eyes weak
@michaczajka5873
@michaczajka5873 4 ай бұрын
Quick peeks to documentation gives this video a filling like it is a welding video.
@RealHubertCZGameplayLetsPlay
@RealHubertCZGameplayLetsPlay 2 жыл бұрын
Google algorithm has chosen you. It recommended me your video 3 times until i clicked.
@la694
@la694 2 жыл бұрын
omg its jdhs long lost brother
@noxagonal
@noxagonal 2 жыл бұрын
I've been doodling with Vulkan for a while now. I'd say it's difficult but still very logical. The most difficult thing so far has been the memory management. You must create your own memory pool as there's a hard limit of how many memory allocations you're allowed from the GPU driver and it's usually capped at 4000 allocations. All data sent to the GPU requires memory so you must allocate a chunk at a time. Further, there are different types of memory you can allocate, Eg. VRAM, RAM, RAM which is shared with the GPU, VRAM which is accessible to the CPU... Not all systems have all types of memory so you need to check this at runtime. Different memory types can all have widely different alignment requirements, which also varies from system to system. There's also different memory usage cases, generally linear and optimized, where optimized is used for your usual textures with mip mapping and linear with everything else, including non-optimized texture types and buffers. There are also restrictions for what resources can be created on which memory type and which memory types perform best for each usage case, eg. Optimal textures can only be on the VRAM, vertex buffer may be uploaded to VRAM each frame or if the CPU can access the VRAM it may be faster to write it directly. Lot of options here... Good thing is that it's still very logical, it just requires some learning, and there are multiple Vulkan memory pools/managers on github that will work just fine.
@noxabellus
@noxabellus 2 жыл бұрын
jesus christ that sounds like a nightmare
@noxagonal
@noxagonal 2 жыл бұрын
@@noxabellus Hehe. It's not a nightmare if you like solving problems. XD It's low level and pretty much exactly what the developers wanted, if you don't want to deal with its nuances, there are other libraries that build on top of Vulkan. But yeah, it'll take at least a couple of days to create your own memory pool that works properly with Vulkan.
@abdullahmertozdemir9437
@abdullahmertozdemir9437 2 жыл бұрын
@@noxagonal like vulkan abstractions?
@noxagonal
@noxagonal 2 жыл бұрын
@@abdullahmertozdemir9437 Not sure where my comment disappeared... But yeah, there's plenty from simple helpers to complete game engines.
@melficexd
@melficexd Жыл бұрын
Three words: Vulkan Memory Allocator. If you don't want to mess with the memory, use the VMA. And that will be it. It will handle memory for you just right.
@Lukas-qy2on
@Lukas-qy2on 2 жыл бұрын
feels like an intimidating amount of "boilerplate" but it feels like there is logic underlying it.
@willtheoct
@willtheoct Жыл бұрын
"feels like" isn't "has". You can code in vulkan without the bloat and error logging, and if you need a triangle rendered, use regl to do it in a couple of lines.
@kvbc5425
@kvbc5425 2 жыл бұрын
my brother, i ain't writing 10k lines for a triangle 💀
@gabrielmessier
@gabrielmessier 2 жыл бұрын
you gotta admit, it's a cool looking triangle, though.
@sklonowanykiedymamuta3305
@sklonowanykiedymamuta3305 Жыл бұрын
I was able to do this with 500 lines of code
@willtheoct
@willtheoct Жыл бұрын
@@gabrielmessier I've seen better triangles from first time GL programmers. He only needs 10k lines of code for psychological satisfaction
@921Ether
@921Ether 10 ай бұрын
nah dont worry you just need a thousand lines of boilerplate for that 💀
@999a0s
@999a0s 24 күн бұрын
then include raylib and call DrawTriangle() lol.
@emirbrkic6649
@emirbrkic6649 2 жыл бұрын
Daje fra, fai sentire la presenza italiana in questa community
@lennonmclean
@lennonmclean 2 жыл бұрын
"OpenGL is simple" Yes... Simple...
@Navhkrin
@Navhkrin 5 ай бұрын
Modern OpenGL is like 10x simpler than Vulkan
@lanchanoinguyen2914
@lanchanoinguyen2914 3 ай бұрын
​@@Navhkrinif you draw a single triangle so yes,but to implement a entire rendering pipeline they are equal.Vulkan should be used by abstractions.
@mdev790
@mdev790 2 жыл бұрын
underrated channel, right here
@nathans_codes
@nathans_codes 2 жыл бұрын
Very "flashy" video! How do you do that? How do you handle this constant switching between dark and light themes????
@SamuTheFrog
@SamuTheFrog 10 ай бұрын
My phone is buggin and can't tell if previous comment posted, but it is GNU/Linux with a Window Manager. I'd recommend starting on Ubuntu & installing a window manager, if you are interested. DistroTube on youtube has plenty of vids on window managers. Not possible on Windows.
@BrunoidGames
@BrunoidGames 6 ай бұрын
Amazing intro to Vulkan. Subscribed!
@d.g.m.04
@d.g.m.04 6 ай бұрын
When I watch a video where the guy tells me that OpenGL is high level, I know I'm in the right place.
@rem_0
@rem_0 2 жыл бұрын
With this switching frequency you need to paste some epilepsy warning at the beginning :D
@melficexd
@melficexd Жыл бұрын
Vulkan isn't complex, is elemental, thus people can't get it that easy. The advantage is that it allows for many explicit things that otherwise get overlooked, such as the parallelism GPU-CPU, in fact, if you can get that right, you have half of the victory with Vulkan. Amortize the rendering time with further processing. The other half is taking advantage of GPU parallelism, which Vulkan eases quite a bit too
@sustachio2246
@sustachio2246 2 жыл бұрын
Great video! What vim theme are you using? I am looking for a good one right now
@lolzdev
@lolzdev 2 жыл бұрын
it's called gruvbox
@lija-everything
@lija-everything 2 жыл бұрын
jdh sounds kinda strange in this one did he catch a cold or smth
@rokoblox
@rokoblox 2 жыл бұрын
Man the worst thing i hate about coding something is getting graphics running especially if i want something simple such as some physics test or whatever Neither of these 2 APIs is easy 💀
@Caellyan
@Caellyan Жыл бұрын
You can just use an existing engine then. Godot is pretty good (in C++ land) and you can learn to use VK/GL through modifying it if you need to do it.
@rokoblox
@rokoblox Жыл бұрын
@@Caellyan I usually want to run those experiments on bare bones for maximum optimization by only having what I need.
@loldoblender625
@loldoblender625 2 жыл бұрын
Great video!
@lolzdev
@lolzdev 2 жыл бұрын
thanks!
@enriquedelacal2814
@enriquedelacal2814 Жыл бұрын
Why do you mischaracterize opengl like that
@leolamarra
@leolamarra 2 жыл бұрын
Per caso segui jdh? lo stile mi sembra molto simile, e mi piace molto. Complimenti per il video!
@lolzdev
@lolzdev 2 жыл бұрын
sì lo seguo, come avrai notato nei commenti molte persone si sono accanite avendo notato questa somiglianza anche se come ho già spiegato semplicemente usiamo gli stessi tool e ciò fa sembrare il video simile ma l'esposizione è diversa. Comunque grazie :)
@joshuaheathcote2116
@joshuaheathcote2116 2 жыл бұрын
How the hell do you use vim like that! You're like the VIM professional!
@SanoKei
@SanoKei 2 жыл бұрын
what program is the drawing thing with the grid?
@lolzdev
@lolzdev 2 жыл бұрын
it's xournal++
@Caellyan
@Caellyan Жыл бұрын
I love how CMake is 1/8 of the video. Very realistic 🤣🤣🤣
@willtheoct
@willtheoct Жыл бұрын
well he didn't do very much so...
@The6DAZ6
@The6DAZ6 2 жыл бұрын
Just discovered this channel... Is this an italian accent?
@lolzdev
@lolzdev 2 жыл бұрын
yes lol
@The6DAZ6
@The6DAZ6 2 жыл бұрын
@@lolzdev Gotcha! I'm italian too. Nice video man, keep up with the good work. I'm also a (junior) developer too, is there any resource you can suggest me to learn this topic (I was considering for example making a tetris clone using the canvas API by OpenGL just to start)
@lolzdev
@lolzdev 2 жыл бұрын
I learnt basics of graphics programming from learnopengl.com it's a good resource imo
@_erayerdin
@_erayerdin 2 жыл бұрын
Good video. I wonder, what program are you using to animate in the beginning?
@lolzdev
@lolzdev 2 жыл бұрын
I'm using Xournal++, drawing with the graphics tablet and recording me drawing
@_erayerdin
@_erayerdin 2 жыл бұрын
@@lolzdev Thank you so much.
@albatroshd7945
@albatroshd7945 2 жыл бұрын
Maniac, Programming in Vim, not bad 👍🏽
@zonn8954
@zonn8954 Жыл бұрын
Hey ! Good video thanks What's your configuration ? I mean what distro, desktop environment and overall : what window manager ?
@Nodal488
@Nodal488 Жыл бұрын
His window manager is DWM, for the rest I couldn’t tell 🙂
@lolzdev
@lolzdev 4 ай бұрын
I'm using Arch with dwm as window manager
@Chu4hun
@Chu4hun 2 жыл бұрын
coding time lapse is wery flashy
@dreastonbikrain1896
@dreastonbikrain1896 2 жыл бұрын
Is graphics programming your job? Or is it more a hobby?
@lolzdev
@lolzdev 2 жыл бұрын
definitely an hobby, I'm in high school
@jizosgoescrazy
@jizosgoescrazy 2 жыл бұрын
hey! what IDE is this?
@lolzdev
@lolzdev 2 жыл бұрын
it's not an ide, I'm using a text editor and it's just vim
@nellfs
@nellfs 2 жыл бұрын
Very cool! What wm are you using?
@lolzdev
@lolzdev 2 жыл бұрын
thanks! It's dwm btw
@TheoParis
@TheoParis 2 жыл бұрын
@@lolzdev nice, just switched to dwm myself
@alopmemes1964
@alopmemes1964 2 жыл бұрын
is my guy polish?
@lolzdev
@lolzdev 2 жыл бұрын
nah, italian
@solindek
@solindek 2 жыл бұрын
fajnie jak by był polakiem :)
@kvbc5425
@kvbc5425 2 жыл бұрын
też tak myślałem
@tanveerasif5978
@tanveerasif5978 7 ай бұрын
Bro, you're the running with speed of flash, I am not able to catch even with the speed 0.25X. 😅 May be sharing your code can help me if possible.
@Volian0
@Volian0 Жыл бұрын
I would use vulkan, but sadly... not every old GPU supports it, older android phones don't support it, and that's why I'm using OpenGL ES, it's simple and has everything I need. Maybe I lose performance, but so what? I'm making a simple game, not a cyberpunk sequel
@ari_archer
@ari_archer 2 жыл бұрын
I hate how you use easy and simple interchangeably, it's my biggest pet peeve lol
@lolzdev
@lolzdev 2 жыл бұрын
I didn't really know the difference lol, thank you for letting me know, I have to improve my speaking
@ari_archer
@ari_archer 2 жыл бұрын
​@@lolzdev nah dw lol, good video, it's just my nitpick, I have a huge pet peeve of easy = syntax and simple = logic E.g. asm = simple, python = easy :)
@shmerkel_ogl
@shmerkel_ogl 2 жыл бұрын
this youtube account seems familiarly?
@greanplayer
@greanplayer 2 жыл бұрын
jdh
@shmerkel_ogl
@shmerkel_ogl 2 жыл бұрын
@@greanplayer i know
@mr2meows
@mr2meows 2 жыл бұрын
the title and thumbnail are opposites
@joelm2858
@joelm2858 2 жыл бұрын
0:26 - How are you writing your letters? jesus 😂
@samuelalonso-j9h
@samuelalonso-j9h 5 ай бұрын
I find this video misleading, i mean, sure, if you only use Vulkan like it runs only in a single-threaded application it could be considered easy, but then you're not getting the max. perf. out of it, dive deep into multi-threaded FBOs to achieve more CPU usage thru the use of multiple threads to keep submitting things to the command buffers, and synchronizing barriers to access the resources just in time when it''s needed, etc...
@lolzdev
@lolzdev 4 ай бұрын
I know vulkan was designed with safe multithreading in mind to make the most of modern hardware, being at such a low level possibilities of optimization and performance squeezing is almost infinite, but this was meant to be an introductory 9 minutes video lol
@mrdiabeatis9943
@mrdiabeatis9943 Жыл бұрын
Jdh?
@deleted_handle
@deleted_handle 8 ай бұрын
3:35 wtf my eyes
@birdbeakbeardneck3617
@birdbeakbeardneck3617 2 жыл бұрын
are u jdh?
@daniking7524
@daniking7524 Жыл бұрын
Now a wgpu tutorial pls
@daniking7524
@daniking7524 2 жыл бұрын
Awesomeee
@XkelloggmanX
@XkelloggmanX 2 жыл бұрын
Holy seizures Batman!
@LavaHoleD
@LavaHoleD 2 жыл бұрын
Based
@stfoggy124
@stfoggy124 2 жыл бұрын
In my Personal opinion vulkan isnt hard, just tedious
@discretemathematicso
@discretemathematicso Жыл бұрын
Vulkan is overkill unless your a big game company and making games with lost of eye candy, i dont know what you were trying to show with all that code, too quick to follow and furthermore nothing learned
@lanchanoinguyen2914
@lanchanoinguyen2914 3 ай бұрын
game industry prefers directx12 not vulkan so i see no reason for vulkan rats to bash opengl.
@lLenn2
@lLenn2 2 жыл бұрын
"OpenGL is high-level" lmao 🤣😂🤣😂🤣😂🤣😂🤣😂
@lanchanoinguyen2914
@lanchanoinguyen2914 3 ай бұрын
it's middle level not high level,the dude was wrong.
@nrdybhu1560
@nrdybhu1560 2 жыл бұрын
I likey the video
@Siissioe123
@Siissioe123 Жыл бұрын
I hear an italian accent?
@lolzdev
@lolzdev 4 ай бұрын
you do ;)
@Siissioe123
@Siissioe123 4 ай бұрын
@@lolzdev I always recognize my country’s accent
@TheEngineeringMonkey
@TheEngineeringMonkey 4 ай бұрын
Omg dwm!!
@naninoni7086
@naninoni7086 2 жыл бұрын
Literally a JDH video…
@chakibchemso
@chakibchemso Жыл бұрын
noice vid
@athrixxs
@athrixxs Жыл бұрын
jdh ahh
@Soullessrun
@Soullessrun 2 жыл бұрын
SO FUCKING LOUD AUDIO
@ixyops
@ixyops 7 ай бұрын
Bro is copying JDH BIG TIME. NeoVim, even the same music playing
@AlFredo-sx2yy
@AlFredo-sx2yy 2 жыл бұрын
mfw stolen content
@sannfdev
@sannfdev 2 жыл бұрын
Walmart jdh
@remuswt1035
@remuswt1035 2 жыл бұрын
jdh wanna be
@VmsCentral
@VmsCentral 2 жыл бұрын
If the author does not mind - source that was shown in the video can be took from GitHub gist 0ae55199763301db7d8e5b8a1716d91b
@lolzdev
@lolzdev 2 жыл бұрын
wow, this is impressive! ofc I don't mind, this is a nice thing since I don't even have the code base anymore
@x1expert1x
@x1expert1x 2 жыл бұрын
what the hell is wrong with youtubes user interface, its flickering and sh*t
I Tried The "Game Engine Of The Future"
26:13
Fredyy
Рет қаралды 49 М.
Learning VULKAN by Rendering a GALAXY
6:10
frozein
Рет қаралды 39 М.
Ozoda - Alamlar (Official Video 2023)
6:22
Ozoda Official
Рет қаралды 10 МЛН
Какой я клей? | CLEX #shorts
0:59
CLEX
Рет қаралды 1,9 МЛН
What is WebGPU?
14:09
Suboptimal Engineer
Рет қаралды 70 М.
ALL IT TAKES... A Vulkan Story
29:10
The Cherno
Рет қаралды 134 М.
I made a better Ray-Tracing engine
17:38
NamePointer
Рет қаралды 258 М.
C++ Super Optimization: 1000X Faster
15:33
Dave's Garage
Рет қаралды 332 М.
I FIXED VULKAN!
23:31
The Cherno
Рет қаралды 75 М.
When Your Game Is Bad But Your Optimisation Is Genius
8:52
Vercidium
Рет қаралды 1,6 МЛН
100 Hours Of Graphics Programming
6:48
Tantan
Рет қаралды 164 М.
Introduction to Vulkan Compute Shaders
21:39
İlker
Рет қаралды 12 М.
Ozoda - Alamlar (Official Video 2023)
6:22
Ozoda Official
Рет қаралды 10 МЛН