Better HN
topnewbestaskshowjobs
Log inSign up

eliasdaler

392 karma · joined Sep 9, 2015 (11y ago) · 69 submissions

Programmer and indie game developer.

https://edw.is

Submissions

comment 1mo ago · link · parent

This is a pretty baffling development.

Currently, we have highly specialized apps which do exactly what they need to do. They were created by someone who cares about making the program which works right and reliably. Most programs have years of bug fixes and deterministic algorithms. Many of them run locally and waste a minimum amount of energy to do the calculation.

But this is different - this encourages you to make one-off apps for each little thing you want to do. Imagine someone making a "bill splitter" app every time they go out with friends and how much energy that would waste... Just to do "14+16" that you could do in your head.

Also imagine it coming up with new UIs every time (depending on the prompt/context), and even potentially gaslighting you and doing calculations wrong because no one ever tested it before.

comment 2y ago · link · parent

This showcases why free software is important. Geo-locking is a such hostile practice which makes zero sense here.

If the software/firmware was free and open, you’d be able to patch out/disable the geo-lock. But it probably wouldn’t be there in the first place…

comment 2y ago · link · parent

You can also do this for free with uBlackList: https://github.com/iorate/ublacklist

This has greatly enhanced my Google experience - easy to ban content farms, AI-generator websites from appearing in Google Images etc.

comment 2y ago · link · parent

Thanks a lot! Good luck with your engine as well :)

comment 2y ago · link · parent

Glad you enjoyed it! :)

comment 2y ago · link · parent

> Not sure if I’ll be able to do their new guide, my laptop can’t run some of the more recent versions of Vulkan

If your laptop got still GPU driver updates in 2022 or later, it should probably support Vulkan 1.3. You can install Vulkan SDK (or just extract the archive) and check your Vulkan version by running the supplied "vulkaninfo" program.

For example, my 5 year old Thinkpad T490 fully supports Vulkan 1.3 and it only has an iGPU! :)

comment 2y ago · link · parent

You'll need 1k LOC to draw a single triangle and not 10-20k.

Sticking with OpenGL is understandable, but I can recommend learning some Vulkan as a side project (with the help of vkguide) without too much commitment. That's how I started and it turned out to be not as bad as I imagined! Uour mileage may vary, of course.

comment 2y ago · link · parent

I know about two games which do very interesting stuff with modern GPU capabilities:

* Noita

* Teardown

They both do their physics on GPU which results in some impressive effects and the level of destruction/world interaction which wasn't seen anywhere before.

Here's an interesting Teardown engine overview by its devs: https://www.youtube.com/watch?v=tZP7vQKqrl8

comment 2y ago · link · parent

Oh yeah, I enjoy his streams a lot :D

I can also recommend Arseny Kapoulkine YouTube channel[1]. It can get a bit too advanced at times, but his channel was one of my motivators of getting into Vulkan programming.

[1]: https://www.youtube.com/@zeuxcg

comment 2y ago · link · parent

By the way, here's an interesting post by Mike Blumenkrantz (Valve): https://www.supergoodcode.com/manifesto/

Most of it is satire, but it's interesting that the position of "Chair of OpenGL" still exists to this day and a new person was assigned to it in 2024.

comment 2y ago · link · parent

Thank you! :)

comment 2y ago · link · parent

I guess libraries like bgfx, sokol and The Forge are kinda like that. But I just feel like it’s either all or nothing if you’re already doing your own game engine.

I’m okay with using middleware/3rd party libraries for things which I don’t care too much about (e.g. physics), but graphics is such a core component that I want to handle it myself.

In a way, OpenGL drivers were such middleware libraries written for you by GPU vendors (or open source community). But now they stopped doing that and now you’re either writing your own graphics abstraction layer or using someone else’s.

In this case, I choose the hard way. And it seemed to have worked out so far. I definitely won’t recommend it to everyone (especially if they want to make a game in less than a year!), but as a learning experience it was fun.

comment 2y ago · link · parent

Yeah. Even though it might seem I’m 100% enjoying Vulkan, I still wish there was something closer to OpenGL and which was supported by GPU manufacturers. Other 3d party graphics frameworks are not bad, but you don’t feel the same confidence in their future in the same way as you did about OpenGL.

comment 2y ago · link · parent

Thanks! :D

comment 2y ago · link · parent

vkguide is a great way to get a feel of modern Vulkan. Maybe it’ll be still to complex for you - then it’s okay to say on OpenGL or learn some WebGPU.

I started learning Vulkan as an experiment and it seemed to work out well, so that’s why I wrote this article. :)

comment 2y ago · link · parent

Thanks a lot, that’s a very touching comment.

I try to make my website to feel like “the old Internet” that we seem to be losing and it's great that it’s noticeable. :)

comment 2y ago · link · parent

I can somewhat agree… I don’t dislike/fear Vulkan now, but I feel like there should have been something in-between OpenGL and Vulkan, because in most cases you don’t need the same level control over the GPU which AAA game require. Thankfully, libraries like VMA and vk-bootstrap + new extensions like dynamic rendering make Vulkan start to resemble what “OpenGL Next” could have been. It’s still not perfect, but I’m glad that things have moved into that direction.

comment 2y ago · link · parent

Agreed. I don’t even need all these fancy Vulkan features most of the time… Just validation layers and RenderDoc debugging make the whole experience of doing graphics programming so much more pleasant for me, compared to what I had to deal with in OpenGL.

comment 2y ago · link · parent

I agree. I should probably clarify that in the article. It’s much easier to write “throwaway” code when you’re working alone and when you’re doing it just for fun. This advice was probably aimed at people who tend to overthink things in these kinds of situations and spend years implementing things in the “right” way, which tends to slow them down considerably instead.

comment 2y ago · link · parent

Indeed. vk-bootstrap is a bit better with 600 lines of code, though: https://github.com/charles-lunarg/vk-bootstrap/blob/main/exa...

Vulkan initialization and basic swapchain management is very verbose, but things get much better after you do it for the first time and make some handy abstractions around pipeline creation/management later.

comment 2y ago · link · parent

Indeed. I used as little CSS as I could because I love minimalist websites. And the lack of syntax highlighting was inspired by Go blog, for example. :)

Raw HTML definitely looks much uglier, sadly (“Reader mode” in most browsers makes websites without CSS easily readable, though!).

comment 2y ago · link · parent

Thank you! Also, everything explained in the article is pretty much here: https://github.com/eliasdaler/edbr

comment 2y ago · link · parent

Thank you. The up-front complexity is still there and it might take quite a few days to see your first triangle. But I promise, everything will get much easier from that point. :)

24.

I learned Vulkan and wrote a small game engine with it(edw.is ↗)

625 points · by eliasdaler · 2y ago · 260 comments

comment 2y ago · link · parent

https://vkguide.dev/ is fantastic.

comment 3y ago · link · parent

That’s 0.1%, actually.

comment 3y ago · link · parent

Indeed. I have no credentials to speak about such hard problems, my experience is working with high QPS servers written in Lua and a bunch of small indie games. :)

comment 3y ago · link · parent

Agreed. I see many programs use JS and Python for plugin APIs, while Lua might be a better choice in many cases. It's much simpler and easier to pick up even if you're new to the language.

comment 3y ago · link · parent

"The key is to unhinge the gameplay thread from the render/physics threads."

Many simple games don't need it, by the way. A lot of 2D indie games don't do complex enough rendering/physics to warrant a separate thread. This, in turn, makes everything much simpler if your entire game only uses one thread.

123