Actor runtime: actors, parts, behaviors #43
No assignees
Labels
No labels
area/build
area/content
area/editor
area/engine
area/graphics
area/platform
area/repo-wide
area/tests
area/tools
bug
optional
roadmap
size/L
size/M
size/S
No project
No milestone
Blocks
Depends on
#44 The engine's parts: mesh, lights, camera
UnflavoredMeson/Primal_Plus_Plus
#45 Actor reflection and spawning by name
UnflavoredMeson/Primal_Plus_Plus
#50 Actor messaging: mailboxes and events
UnflavoredMeson/Primal_Plus_Plus
#20 Transforms as components with a hierarchy
UnflavoredMeson/Primal_Plus_Plus
#21 Reflection generator PrimalReflectGen
UnflavoredMeson/Primal_Plus_Plus
Reference
No Branch/Tag specified
Notifications
1 participant
Due date
No due date set.
Reference
UnflavoredMeson/Primal_Plus_Plus#43
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Editor scenes are made of actors: things with a tree of parts and some logic. They sit on top of the ECS so mass gameplay can still use plain entities.
Decided
actor::ActorOwner); the part tree is the entity hierarchy; the first part is the root. Objects cache no component data.PartReffields;ActorRef/PartRefconvert from pointers implicitly.spawn()is immediate between frames and at the sync point, queued inside a frame;destroy()/remove_part()only between frames;queue_add_*()inside a frame.update()tick.late_update()after all updates.game_entity::remove()(asserts).Read first
Steps
UnitTests/ActorTests.cpp: spawn, parts as children, behaviors begin play before the actor, destroy order, queued spawn inside a frame.Engine/EngineAPI/Actor.handEngine/Actors/until they pass.destroy_all()at shutdown; test it with 10,000 actors (the fork's was quadratic).Done when
Claude can help with
Learn