nancygold's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Wednesday, July 31st, 2024

    Time Event
    12:45a
    Okay. My entity system is moving somewhere
    Here is what real ECS is all about...


    Current Mood: accomplished
    1:06p
    Why Linux users are like that?
    Linux user group = gay raep party?



    Current Mood: amused
    7:37p
    Moving the terrain arrays to ECS...
    Beside efficient bitmaps, implementing world map cells as entities requires a way to allocate entity ids at a specific continuous range and to reserve that range in advance. But a continuous range of memory addresses is usually called "array"! In our case sparse columnar array, which itself can be implemented using `cls` (columnar struct classifier macro):
    //array of columnar objects
    cls cla n: = newIds_ $n
    @as_text = "$<cla:[$id]:[$n]>"
    @'.' K = (fxn $id + 1 + K).as_id.trycls


    Of course instead of 10 I can easily do 1000*1000*1000, with most cells being empty



    Current Mood: accomplished

    << Previous Day 2024/07/31
    [Calendar]
    Next Day >>

About LJ.Rossia.org