basic ECS spawner
This commit is contained in:
12
addons/gecs/tests/systems/s_noop.gd
Normal file
12
addons/gecs/tests/systems/s_noop.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
## No-op system for measuring overhead
|
||||
class_name NoOpSystem
|
||||
extends System
|
||||
|
||||
|
||||
func query():
|
||||
return ECS.world.query.with_all([C_Velocity])
|
||||
|
||||
|
||||
func process(entities: Array[Entity], components: Array, delta: float):
|
||||
for entity in entities:
|
||||
pass # Do nothing - used for measuring pure framework overhead
|
||||
Reference in New Issue
Block a user