ConfettiFX / The-Forge

The Forge Cross-Platform Rendering Framework PC Windows, Steamdeck (native), Ray Tracing, macOS / iOS, Android, XBOX, PS4, PS5, Switch, Quest 2
Apache License 2.0
4.71k stars 493 forks source link

EntityComponentSystem example has bad FPS #159

Closed trsh closed 4 years ago

trsh commented 4 years ago

WHY? It's just small sprites floating around? ECS mission should be to optimize speed, not drag it down.

Untitled7

gtx 750 ti 4gb, i3-6100

https://pixijs.io/bunny-mark/ > 10k sprites = 60 fps

wolfgangfengel commented 4 years ago

Can you send us a CPU and GPU profile so that we can check? Looks like it is CPU limited. I assume you compiled for release?

trsh commented 4 years ago

@wolfgangfengel no I compiled for debug. What do you mean with CPU and GPU profile?

trsh commented 4 years ago

A release version knocked down the CPU to ~14ms. This all is expected?

wolfgangfengel commented 4 years ago

It is a stress test for the CPU and memory access patterns. In debug it is expected to run slow ...