tsherif

Joined 15 years ago

Karma
96
Submissions
45
Member since
May 9
http://tareksherif.net/
View on Hacker News

Recent submissions

Comment · 4 years ago
Thank you!
Comment · 4 years ago
Thank you!
Comment · 4 years ago
Comment · 4 years ago
Thanks for the tip! I'll try to figure out if something similar is happening on either of the machines I'm using. That's a bummer that an in-place update function would be allocating behind the scenes...
Comment · 4 years ago
Thanks! My first child was born last year, and I started a new job 3 months earlier, so time was definitely not an abundant resource! But between the stress of all that and the pandemic, I found squeezing in an hour or two for this project here and there was one of the few things keeping me sane, and that's what got me through it.
Comment · 4 years ago
Ack! Right I hadn't thought of that. I'll have to decide if I'm ok with breaking the "written in standard C" constraint on this project...
Comment · 4 years ago
Thanks! I definitely tried to focus on only using as much abstraction as was actually helpful in getting it to work the way I wanted it to.
Comment · 4 years ago
Sweet, thanks for sharing! I'll definitely take a look.
Comment · 4 years ago
Thanks! This was a revelation for me on a few levels:

1. That memory management doesn't have to be scary with a little forethought, at least for programs where you can set a reasonable upper bound on the resource requirements.

2. That it's possible to structure at least a subset of programs in such a way that error states can only be entered during initialization, and that makes the rest of the program much easier to reason about.

Comment · 4 years ago
> i even found out that a call like glBufferSubData will call malloc or related functions. so doing that on each frame seems to be a bad idea as well.

That's interesting and not what I'd expect at all! Is there documentation you could point me to or did you find that out with some tooling? And is there a better way to update attribute buffers for instanced draw calls?

Comment · 4 years ago
Hadn't seen this before, but that's a flattering comparison. Thanks!
Comment · 4 years ago
That's an interesting idea. Probably won't change the format for this project, but something I might consider in future ones. Thanks for the tip!

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton