Cryru / Emotion

A game engine.
MIT License
56 stars 5 forks source link

Deprecating / Refactoring #69

Open Cryru opened 3 years ago

Cryru commented 3 years ago
Cryru commented 3 years ago
Cryru commented 3 years ago

~TransformRenderable is confusing, and the model matrix is rarely used (only by classes such as RichText which overoptimize their drawing). The memory overhead in TileMap is not worth it. Along with removing this, the automatic matrix push in the RenderComposer should also go, as it breaks batches.~

Cryru commented 3 years ago

CrossPlatformPath and MakeStringPathSafe in the helpers file are no longer needed?

Cryru commented 3 years ago

~Main thread does nothing but sleep in Parallel.FastLoops essentially idling. Maybe a new task system is in order?~

Cryru commented 3 years ago

FlipX and FlipY arguments to RenderSprite should be grouped in a enum. Introduce rotation in 90 degree increments (90/180/270) both before and after flip. Add flag combining.

enum UVTransformation {
 Rotate90,
 FlipX,
 FlipY,
 Rotate90AfterFlip
}
Cryru commented 11 months ago

CoroutineManager and ITimer are flawed. Cant create alternate time incrementors and there's a lot of dead weight in that API

Cryru commented 11 months ago

BaseMap's world tree needs to be replaced with a grid for allocation free iteration and tags instead of world tree layers