Nigeria No1. Music site And Complete Entertainment portal for Music Promotion WhatsApp:- +2349077287056
Thursday, 30 January 2025
Show HN: 1M+ animated GPU sprites in JavaScript https://bit.ly/4aMmDBa
Show HN: 1M+ animated GPU sprites in JavaScript We added a new feature to our open-source HTML5 game engine today that allows you to create Sprite GPU Layers. These pack together simple JS object definitions onto the GPU and renders them using a custom vertex shader. This skips all CPU computation and GPU upload operations, resulting in vastly increased performance. For objects that don't need to be updated by input, physics, or other interactive behaviors, we found it to be a great solution. In testing, we've easily managed to blast millions of sprites around on moderate desktop-grade GPUs. Indeed, we hit the fill rate limitation of the GPU far sooner than we hit any other type of limitation. But as with all hardware-related things, ymmv. Frankly, we'd love to get our hands on a 5090 to see what we could do. The link includes 4 demos to play with, and the full source is on GitHub and npm under the MIT license. https://bit.ly/40ANtY5 January 31, 2025 at 02:52AM
Labels:
Hacker News
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment