Hacker Newsnew | past | comments | ask | show | jobs | submit | joshsyn's commentslogin

How is this exactly going to be used in bevy?


At least one mention of it here https://github.com/bevyengine/bevy/issues/12590

> Use one set of large mesh buffers per vertex attribute layout

> Problem: Index/vertex buffers have to be re-bound when the mesh changes. This adds overhead when encoding draws and when drawing. It also prevents some optimisations like being able to draw all objects for shadow mapping for a light in one draw.

> Solution(s): [...] Use an appropriate allocator like a port of Sebastian Aaltonen's offset allocator [https://github.com/sebbbi/OffsetAllocator] to manage allocation

Where the "port of Sebastian Aaltonen's offset allocator" is what got linked in this HN submission.


The goal is to start storing multiple meshes in the same vertex buffer/index buffer. (I already have a decent chunk of this code written in a branch.) This reduces binding overhead, but moreover it allows us to start using multidraw indirect where supported, which should reduce drawcall counts dramatically. I measured a 97% drawcall count reduction for the opaque pass on the Bistro test scene, for example. The benefits are even higher for shadow maps, because they use a single shader and so the drawcall count should drop to the single digits in most cases.

I've said it before, but if drawcall count is a problem in your game, you should complain to the engine vendor. On modern GPUs, there's no reason people should be manually optimizing for drawcall count in 2024. Game engines have the tools to make it a non-issue; they just need to use them.


Really? Stopped being hyperbolic. The guy did his job.


Good to hear. Still too much complexity around laws and regulations, its easier to live in a cave.


Not really, where is the creative freedom? Is anyone being held hostage to choosing a different phone if it doesn't allow their favourite track to be played?


> where is the creative freedom?

Creative freedom is for companies that are valued below €75bn and exempt from this regulation. The big ones have to comply with more heavy-handed regulation, as it should be in my opinion.


How are they affording wars?


Considering the high inflation rate, they can't. Military sector spending is at the expense of the rest of the population.


Who's we? I am not in this together. So change it to "I". I don't care about you lot... lmao


> Who's we?

From context, pretty obviously "we Ukrainians". Didn't do too well in elementary reading, did you?

> I am not in this together. So change it to "I". I don't care about you lot... lmao

Thank you for so effectively demonstrating what a despicable excuse for a human being you are. I'll do my best to remember this when next I come across anything from you.


What a hyperbolic emotional liar incapable of reasoning...


Yandex > Google.


Jane Street is making me considering using OCaml.


lol, you are funny. think you are the one who can be easily controlled. Putin does not even speak english. The delusional with this one is strong.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: