Readit News logoReadit News
molli commented on Nobel Prize in Physics awarded to John Hopfield and Geoffrey Hinton [pdf]   nobelprize.org/uploads/20... · Posted by u/drpossum
molli · a year ago
Hinton: Studied psychology, became cognitive scientist.

Schmidhuber: Studied cs and math, developed algorithmic theory of the computable universe.

Hinton wins Nobel price in physics.

molli commented on Show HN: Hacker League – Open-Source Rocket League on Linux   github.com/moritztng/hack... · Posted by u/molli
Toorkit · 2 years ago
Sick, when is HLCS?
molli · 2 years ago
:D
molli commented on Show HN: Hacker League – Open-Source Rocket League on Linux   github.com/moritztng/hack... · Posted by u/molli
a1o · 2 years ago
I am amazed at how small the code is once you strip all the vulkan
molli · 2 years ago
Yup, it's tiny (~100kb)
molli commented on Show HN: Hacker League – Open-Source Rocket League on Linux   github.com/moritztng/hack... · Posted by u/molli
BimJeam · 2 years ago
Very very cool. Let's make a real game out of it. No steam no gigabyte large assets. Just that cool game. Maybe use some ai to generate some assets with stability ai / stable diffusion an let's get a lot of people on board. That could be a fantastic project.
molli · 2 years ago
Yup, let's do it! The binary is ~100kb :D Join the Discord server that I posted here!
molli commented on Show HN: Hacker League – Open-Source Rocket League on Linux   github.com/moritztng/hack... · Posted by u/molli
Cieric · 2 years ago
I find projects like this really fun, but when it comes to being a game I am seeing a lot of problems.

- renderer and physics aren't synced in any way, physics shouldn't be tied to frame rate, but running as 2 separate threads with no synchronization means you might read garbage at some points if you render while the physics thread is updating.

- physics using this_thread::sleep_for is not accurate and can sleep for longer than the specified time, assuming the period to be 1/60 isn't correct. The delta time needs to be measured.

- using VK_PRESENT_MODE_FIFO_KHR or VK_PRESENT_MODE_MAILBOX_KHR force vsync, but vsync can be anything. With the physics system being locked to 60, you'll notice a stutter on non-mulitiple vsyncs like 144hz. There aren't many solutions I know for this, but the main ones I know of are interpolation and extrapolation of the physics state based on the framerate. I would bump the physics update rate to 120hz to match rocket league and then experiment from there.

- Using both Eigen and GLM is overkill in this case, both are slow, but if sticking with one I would use switch solely glm.

- More of a nitpick, but I would separate out all the code at least between rendering and physics to their own independent files. The vulkan api on it's own adds a lot of clutter, moving that to it's own file should make the project easier to navigate and explorer.

There are more things, like how hard coded that shaders are, but I assume the vulkan renderer will be improved past just being from the vulkan-tutorial, so advice for that can't really be given till the renderer has been updated.

P.S. Sorry if any of this sounds harsh, it's not my intention. I've just done a lot of work involving games, game engines and renderers. And I'm seeing a lot of the problems I made when I first started. I wish you the best of luck with your project.

molli · 2 years ago
Thanks a lot for the feedback! I built it in ~2 weeks and it's really just a prototype at this stage. Some of the points I did on purpose to finish a prototype quickly (Eigen + GLM, one file, not syncing renderer and physics, hardcoding shaders etc.). But some things I didn't know - thanks for that :)
molli commented on Show HN: Hacker League – Open-Source Rocket League on Linux   github.com/moritztng/hack... · Posted by u/molli
nazgulsenpai · 2 years ago
Looks just like Rocket League! Seriously though, this is awesome and the single source file makes it much easier to poke around the source without cloning. Thanks for sharing!
molli · 2 years ago
You're welcome. The binary is only ~100kb and no game engine etc. is used.
molli commented on Show HN: Hacker League – Open-Source Rocket League on Linux   github.com/moritztng/hack... · Posted by u/molli
klaussilveira · 2 years ago
Curious: why Eigen for math? Isn't it oriented towards academic purposes? Wouldn't something like Terathon be faster?

https://github.com/EricLengyel/Terathon-Math-Library

molli · 2 years ago
Because I use it only for the physics. For Vulkan I used glm. Ideally, we should only use one library.

u/molli

KarmaCake day122May 25, 2021View Original