I found what makes even simple loops 4x slower
ฝัง
- เผยแพร่เมื่อ 25 ก.ย. 2024
- The ideas are baked into the Entity Component System or ECS architecture and it can turn a loop that takes 2 seconds to run into one that takes more than 8 seconds!
Join us on Discord: / discord
Follow us on Twitter: / ourcadehq
📚 More resources to understand ECS:
Scott Bilas GDC 2002: www.gamedevs.o...
Evolve Your Hierarchy: cowboyprogramm...
Adam Martin ECS: t-machine.org/i...
Benchmarks: github.com/noc...
ECS FAQ: github.com/San...
Memory in JS: / memory-in-javascript-b...
Data Locality: gameprogrammin...
🎬 ECS Talks:
Overwatch architecture: www.gdcvault.c...
SAConf: • Entity Component Syste...
RustConf talk: • RustConf 2018 - Closin...
👾👾👾
Ourcade is a playful #gamedev community for open-minded and optimistic learners and developers. 🎮🕹👾🤗 ourcade.co
#javascript #ecs
Here's some more ECS talks:
Overwatch architecture: www.gdcvault.com/play/1024001/-Overwatch-Gameplay-Architecture-and
SAConf: th-cam.com/video/SFKR5rZBu-8/w-d-xo.html
RustConf talk: th-cam.com/video/aKLntZcp27M/w-d-xo.html
Check the description for even more resources!
I wasnt expecting an ecs runthrough from the title but you did a great job running it down!
Pure gold, can't wait to access that repository
Thanks!
Your content is getting better and better Tommy, well done!
Thank you! 🤗
Skipping the ECS fanboy bit, pack your data in chunks that its likely to be read in and access it in predictable ways. ECS doesnt mean this by default and can be done with some pre planning and understanding how arrays work.
Great! I knew there was an evolution from plain OOP. I think this seds me in the right pad.
Really enjoy your videos!
Thanks!
Great content
Thanks!
I'm looking forward to it so much, I just wanted to ask if there is a complete video about ecs. I've been researching the use of ecs+phaser recently, but it's a bit difficult to use. I hope I can see it sooner, looking forward to it!
We do have a playlist for bitECS and Phaser 3: Beginning ECS in Phaser 3
th-cam.com/play/PLumYWZ2t7CRtUDC3eEpa5EZgSmbSdBBI7.html
I think you’ve seen some of them but it goes through sprites, then Arcade Physics, and lastly Matter Physics
You make great videos sir. You need more subs.
Thanks!
top notch content
Thank you!
Great video.
Thanks!
Hi! Have you released the repository? I tried looking for it, and I couldn't find it.
Thanks for these videos!
Amazing video, but Phaser already has an ECS under the layer I think, so I guess some things already are optimized but other aren't like in the example??
Thanks! Phaser 3 does have the concept of components and they are used more like mix-ins. Phaser 4 has plans to use a Struct of Arrays style of ECS by using bitECS but things may change as development continues on that!
This video would have the same impact with or without the ECS section. Really ECS doesn't mean anything when your initial talking point is just about iterating an Array without messing up the data locality.
...god, why did you have to add in extremely loud whooshing sound effects that make it hard to understand what you're saying during them ._.
it is also really distracting to say the least
It's enough to open an Intel optimization manual to discover more loop optimizations besides memory access.
So there is alpha?
Not yet but working on it!
Bruh my computer just looped like 16x slower
It can definitely vary!
It's windows, that's the cause