Spatial Hash Grids & Tales from Game Development
🛒 Recommended books (on Amazon): https://www.amazon.com/hz/wishlist/ls... ❤️ Support me on Patreon: / simondevyt 🌍 My Gamedev Courses: https://simondev.teachable.com/ Disclaimer: Commission is earned from qualifying purchases on Amazon links. Follow me on: Twitter: / iced_coffee_dev Github: https://github.com/simondevyoutube/ In this project we're covering spatial hash grids, or spatial hashing, people seem to call it all sorts of different names. Anyway, we'll be covering a spatial hash grid implementation in JavaScript, working through it line by line. We'll walk through the code step by step, explaining it as we go, and as an added bonus, I've implemented a small scene in Three.js with hundreds of moving agents that we can use to visualize what's visible from the perspective of any given agent. I'll also tell a small but interesting little story from way back when I was working on xbox/playstation games. Somewhat related to the topic. Having a comprehensive understanding of data structures is fundamental to being a solid game developer. You need to understand the trade-offs, not just in time complexity. Questions like memory consumption, implementation and on-going maintenance costs, these all factor in. Sometimes simple solutions, implemented well, that get you 95% of the way there but at a fraction of the developer cost, are the way to go. The three.js library is available in JavaScript for cross-browser 3d graphics, wrapping webgl and making high level functionality available in the web browser. It’s an extremely mature and well maintained library that I use for many of these videos. In the video, we cover: What problem are we trying to solve? We'll look at examples from major games to understand their needs in different situations. We'll touch on alternative spatial data structures, and discuss the tradeoffs. I'll talk about an instance in my career that's relevant to this problem Step by step walk through for the full implementation of a basic spatial hash grid.

How I Optimized My JavaScript Project (Complete Walkthrough) | Faster Spatial Hash Grids

How Big Budget AAA Games Render Bloom

When Your Game Is Bad But Your Optimisation Is Genius

AI Coding Works. That’s the Problem

How Games Have Worked for 30 Years to Do Less Work

Neat AI does Spatial Hash Boids

BSP Trees: The Magic Behind Collision Detection in Quake

Insanely FAST Spatial Hashing in Unity with Jobs & Burst

Programming in Assembly without an Operating System

I Tried Making a 3D MMORPG Game in JavaScript

How Ray Tracing (Modern CGI) Works And How To Do It 600x Faster

The Cursed "Optimization" In TES:Oblivion | UE5.6 is NOT 30% faster (Context Explained)

Dear Game Developers, Stop Messing This Up!

Moebius-style 3D Rendering | Useless Game Dev

K-d Trees - Computerphile

Turing Award Winner: Disagreeing with Google, Postgres, Future Problems | Mike Stonebraker

One Formula That Demystifies 3D Graphics

11 - Finding collisions among thousands of objects blazing fast

