Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

DOOM in Django: testing the limits of LiveView at 600.000 divs/seconds

Дата публикации: 03-01-2026 21:22:03

Yep, DOOM in Django. That's right. Django LiveView streams ViZDoom as 100x100 pixel frames mapped to 10,000 divs at 60 FPS, sustaining about 600000 divs per second reliably.

Основное содержимое страницы с новостью.

Based on the latest tests I've published, Django LiveView appears to be the fastest dynamic frontend (I'm sure more variables can be measured).

Django LiveView benchmark comparison

OK... but... How can I test its limits? By drawing a Snake? A Pac-Man?... No... let's crank up the difficulty to Nightmare! Let's run DOOM inside Django 😈

(If you don't see the video playing, please tap the image.)

Django starts ViZDoom and sends one <div> per pixel with its color. The game runs at 100x100 pixels at 60 FPS = 600.000 divs/second! 😵‍💫

Here's how the data flows:

  1. ViZDoom generates a frame.
  2. Django transforms the frame into 10.000 divs using its template engine.
  3. Django LiveView renders them on the page of connected users.
  4. CSS arranges them.

Furthermore, since the data is sent via broadcast, all players can see the same thing in real time.

Crazy.

Conclusion

Mission accomplished! Django LiveView survived the DOOM stress. It was a ridiculous and fun experiment that proves this framework can handle pretty much anything you throw at it.

Now go build something cool without Doom Slayer.

You can check the source code on GitHub.

This work is under a Attribution-NonCommercial-NoDerivatives 4.0 International license.

Previous article

Why I forked instead of taking the easy way out

Next article

Performance comparison of Django's main interactive frameworks

Do you want to read what I never publish?

I send what does not fit in the articles: full configurations, messy notes and whatever I am testing right now. No spam, no sales funnels.

Send an email to newsletter@andros.dev with the subject SUBSCRIBE and you are in.

To unsubscribe, send UNSUBSCRIBE to the same address.

Help me keep writing

Every coffee gives me a push toward the next article.

1 mention from another site

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1I Created a Game Engine for Django?011.124-01-2026
2django-devbar - Lightweight performance devbar for Django.024.2912-01-2026
3django-live-translations - In-browser translation editing for Django superusers03529-03-2026
4django-crawl - An in-process site crawler using Django’s test client028.1828-07-2026
5django-nanopages - Django pages from Markdown026.6725-01-2026
6django-query-doctor: Diagnose Slow Django Queries03002-08-2026
7Микросервис потоковой конвертации видео (Python, FFmpeg)07.3705-04-2026
8Best Django Redis configuration for speed and size07.6627-07-2026
9Мы сделали лучший REST фреймворк для Django15.0202-04-2026

Классификация: . Схожих патентов: 0. Схожих новостей: 9. Тональность: 0. Информативность: 16.51. Источник: pythondigest.ru.