Re: Architectural Discussion: Implementing ECS and Data-Oriented Programming (DOP)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Interesting (and seemingly AI generated or at least AI enhanced).

Couple of good points though - could we come up with atom key = map:precompute_key(m, "x") and then use map:has_pkey(m, key) and map:get_via_pkey(m, key) ? Do we have to compute the key every time or can we just do it once, to speed up the loop?

Likewise, OE 4.2 has references - so when the top-level world[id] = 0 happens, the object can call a custom delete_routine() - perhaps we could implement a custom GC-like pass here for maps, that searches for child maps that might be unused, and deletes them. (It could be a shallow one, since if the child map has its own nested maps, then the child's own delete_routine should take care of the grandchildren, etc.)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu