News for hackers. Stuff that matters.

aarongeisler

I still write games using OpenGL for the reasons described in the comments here. I've had very good results with it despite it being "old". It works on my MacBook, PC, and SteamDeck and it has yet to surprise me.
I've had to wrestle with float precision issues writing physics code for games. Single precision floats do not behave well when you are doing calculations far from the origin (especially when doing subtractions). I ended up having to adopt double precision floats to track the camera and entity positions in my game with kilometer-scale environments. I've also had issues with floats when doing repeat transformations on a rotation basis without periodic orthonormalization.
Yes, same experience. I recently played a "Wolfenstein" clone that frequently dipped into the the 30-60 fps range on my 3080. The original Wolfenstein used to run on a 386 if I'm not mistaken.

Ask HN: Game devs, how do you approach optimization? What would make it better?

Game devs, how do you ensure your game performs well across your player base? By perform well, I mean achieving consistent frame rates and reasonable load times (and free of other technical issues).Obviously, there are ways to measure and debug these things in a development environment (profilers, NSight, RenderDoc). But how do you gain confidence things are working well in the wild with...

( Read More... | 2 comments | 4 points | on HN )
Re:C programming language official site on Wednesday March 12, 2025 @09:59AM (#43343336)
Thank you for sharing this. I linked it from my list of resources for C-based game development: https://github.com/aaron9000/c-game-resources
Re:Hacker News for Gamedev on Friday January 31, 2025 @09:47AM (#42888188)
Yep, familiar with this one - one of the best out there!
Re:Hacker News for Gamedev on Friday January 31, 2025 @09:40AM (#42888122)
I hope this catches on. For whatever reason, I haven't come across many gamedev-focused sites with good content. The gamedev subreddit is particularly disappointing.

Feebdack: agree with the other comments that the background image is a bit hard on the eyes.

Nice work!

Re:Classic 3D videogame shadow techniques on Wednesday October 30, 2024 @01:12PM (#41997668)
Agreed. Even with a top-end GPU I almost always turn off RT features. I expect we will continue to see hybrid RT approaches for the foreseeable future.
Re:Classic 3D videogame shadow techniques on Wednesday October 30, 2024 @09:39AM (#41994612)
Great post. There are lots of nostalgic game references here. I still remember being blown away by the shadows in the N64 Zelda many years ago.

I expect area lights and soft shadows to become the norm as ray-traced techniques are adopted. If you have the hardware, it's worth checking out Quake 2 RTX to see what the future might look like.

Lastly, I've added your blog to my growing list of graphics resources: https://github.com/aaron9000/c-game-resources

This looks great! I am a big fan of the single header format. I've linked Clay from my list of game resources for C developers. Cheers!

https://github.com/aaron9000/c-game-resources

Thank you, I will check these out - love what you are doing. Please keep it up.
This is great! I added the link to my list of free game dev resources: https://github.com/aaron9000/c-game-resources

Is there a tool you used to create these materials that you would recommend?

Yep! No issues with the Steam Overlay.
I use Nuklear for a Steam game I made in C. It worked well for my needs but there are a few things I still haven't figured out yet - like rendering centered multi-line text. Localizing my game was very straightforward with Nuklear - I didn't run into any roadblocks with fonts or different alphabets. I was able to get the interfaces to be controller-friendly too. Overall, I had a positive experience and will use it again.
Re:Writing a 3D Game in C (in 2022) on Tuesday December 06, 2022 @05:21PM (#33887964)
I'm not suggesting C is better or that I made the correct choice here. My takeaway is that C is "doable" but not the most practical.
Re:Writing a 3D Game in C (in 2022) on Tuesday December 06, 2022 @05:18PM (#33887920)
I updated the post - really appreciate the attention to detail.
Re:Writing a 3D Game in C (in 2022) on Tuesday December 06, 2022 @05:12PM (#33887848)
That makes a lot of sense. Any resources you would recommend? I am getting tired of making C "wrappers" to work with C++ SDKs. Will probably need to bite the bullet on this.
Re:Writing a 3D Game in C (in 2022) on Tuesday December 06, 2022 @04:05PM (#33887030)
You are correct in the case of nested pointers. I am using primitive types nearly exclusively. Good observation!
Re:Writing a 3D Game in C (in 2022) on Tuesday December 06, 2022 @08:39AM (#33879466)
Reflections on building and publishing a game using a 50 year old language.
I really like this. This would've been handy as a student. I definitely prefer this to a textbook.
Re:Data on the uselessness of LinkedIn endorsements on Monday February 27, 2017 @02:04PM (#13746837)
Amen
Re:Ask HN: Is there anything you like about recruiters? on Sunday February 26, 2017 @02:00PM (#13739020)
From my experience (on the hiring side), the good recruiters were autonomous and sourced qualified people. Bad recruiters wasted my team's time and brought and endless stream of unqualified candidates. It seemed like the good ones were 1 in 5.
Re:Engineers Should Blog on Saturday February 25, 2017 @04:39PM (#13733994)
I think there is some truth to this. I landed my first startup engineering position via a blog post.

This particular post only took 30 minutes to write - they can be short and sweet.

I've been working at Oculus (within Facebook) for a couple of months now - I'm enjoying it quite a bit. I worked at startups previously and my work / life balance is much better now. My projects have been interesting as well.
Re:Ask HN: Who wants to be hired? (September 2016) on Thursday September 01, 2016 @12:52PM (#12406879)
- Location: Los Angeles

- Remote: Yes

- Willing to relocate: Yes

- Technologies: AWS, Node, React, C#, Obj-C, MySQL, Redis, Elasticsearch, Unity3D

- LinkedIn: https://www.linkedin.com/in/aaron-geisler-7236314b

- GitHub: http://github.com/aaron9000

- Email: [email protected]

Significant experience at small & medium sized startups. Built applications used by millions and had several products featured by Apple, Google, and KickStarter. I have a few years of management experience as well.

Nice. It displays well on my phone. I also agree with ditching the epilepsy button.
Nice Work! I love the artwork and character animations. Im leaving you a review.

Can you rate my HTML5 submission for LD 26? http://www.ludumdare.com/compo/ludum-dare-26/?action=preview...

Weekend Project - HTML5 RTS

http://www.slothproductions.org/canvas/ludumdare/

I participated in the Ludum Dare game competition this weekend. The prompt was "minimalism" so I made the simplest strategy game possible in 48hrs. All feedback welcome!You'll get the best experience with Chrome.Contest Entry: http://www.ludumdare.com/compo/ludum-dare-26/?action=preview&uid=22099

( Read More... | 1 comment | on HN )