Live data from Hacker News

Doom in Django: testing the limits of LiveView at 600.000 divs/segundo

en.andros.dev

51–55 of 55 posts

Re: Doom in Django: testing the limits of LiveView at 600.000 divs/segundo

#51
post #39
post #35

Earlier quoted context omitted.

I looked(admittedly briefly) and couldn't find the architecture explanation in the docs here: https://django-liveview.andros.dev/docs/

I apologize, I assumed the architecture would be understandable from the examples. I'll keep that in mind!

The docs lead to a 403, but I'd be curious to know how it is simpler. I believe the Phoenix version uses Erlang iolists and immutability to make diffing more efficient, and perhaps the Django version has something similar?

Re: Doom in Django: testing the limits of LiveView at 600.000 divs/segundo

#52
post #12

Earlier quoted context omitted.

It's only django-related third-party packages comparison (and SSR itself), would be a bit strange to compare with a different language/stack and/or framework

With focus on LiveView, I think it’s interesting to see how the runtime influences the results. Django and Phoenix have a very different concurrency model

Six years ago when I was working with a Phoenix API, we were measuring responses in microseconds on local dev machines, and under 5 ms in production with zero optimization. In comparison the identical Django app had a 50 ms floor.

Re: Doom in Django: testing the limits of LiveView at 600.000 divs/segundo

#53
post #51
post #39

Earlier quoted context omitted.

I apologize, I assumed the architecture would be understandable from the examples. I'll keep that in mind!

The docs lead to a 403, but I'd be curious to know how it is simpler. I believe the Phoenix version uses Erlang iolists and immutability to make diffing more efficient, and perhaps the Django version has something similar?

sorry, try this: https://django-liveview.andros.dev/docs/install/

Though it doesn't answer your question, the link at least works :)

Re: Doom in Django: testing the limits of LiveView at 600.000 divs/segundo

#54
post #8

Since 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…

Wonder if it would be more efficient to use a single-pixel column and then draw the colours with gradient stops?

Re: Doom in Django: testing the limits of LiveView at 600.000 divs/segundo

#55

Shame Phoenix LiveView is missing from the comparison

It's only django-related third-party packages comparison (and SSR itself), would be a bit strange to compare with a different language/stack and/or framework

If it's only about Django ecosystem, true that. But if it's about pushing the limits how fast you can server-side render doom, then there are more possibilities to be tested:)
Post reply on HN