Doom in Django: testing the limits of LiveView at 600.000 divs/segundo
41–50 of 55 posts
Re: Doom in Django: testing the limits of LiveView at 600.000 divs/segundo
#42if only i could run django on cloudflare workers guess i could run it on a dedicated server would be nice if we can get django and liveview working without a server
Re: Doom in Django: testing the limits of LiveView at 600.000 divs/segundo
#43Since Doom renders the image with vertical columns of pixels (floor, lower wall, portal if exists continues rendering the other sector, then upper wall then ceiling) and since browsers are very good at drawing the sprites out of larger textures... You could send vertical divs shaded with the sector light level and picking the correct textures. Instead of hundreds per column you will have like 5 divs on average per co…
I believe he stated in the beginning pretty clearly that the point of this exercise was to stress test the Liveview performance. Making this more efficient would be kinda counter productive
Re: Doom in Django: testing the limits of LiveView at 600.000 divs/segundo
#44Since Doom renders the image with vertical columns of pixels (floor, lower wall, portal if exists continues rendering the other sector, then upper wall then ceiling) and since browsers are very good at drawing the sprites out of larger textures... You could send vertical divs shaded with the sector light level and picking the correct textures. Instead of hundreds per column you will have like 5 divs on average per co…
Re: Doom in Django: testing the limits of LiveView at 600.000 divs/segundo
#45 - It's not stateful
- There's no html diffing
- Handlers return target+fragment instead of updating stateRe: Doom in Django: testing the limits of LiveView at 600.000 divs/segundo
#46Re: Doom in Django: testing the limits of LiveView at 600.000 divs/segundo
#47When will people stop doing this and just leave Doom alone?
Re: Doom in Django: testing the limits of LiveView at 600.000 divs/segundo
#48Earlier quoted context omitted.
At that point just run the browser on the server and use proper cloud gaming tech to stream the screen and have low-latency interactivity.
If it's streaming at 60 fps, the bottleneck is in the browser, which is doing what it can :)
Re: Doom in Django: testing the limits of LiveView at 600.000 divs/segundo
#49This is more like HTMX+websockets than phoenix liveview. - It's not stateful - There's no html diffing - Handlers return target+fragment instead of updating state