12/31/2025 at 11:49:32 AM
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 column and they will be textured shaded and scaled by the browser?by kvakvs
12/31/2025 at 1:16:33 PM
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
by ffsm8
12/31/2025 at 2:04:49 PM
I agree, but it certainly wasn't performant (in the video).I'd be curious to see what parameters are required for a smooth / playable demo.
Or am I missing something?
(Slow input with no interpolation?)
by jasonjmcghee
12/31/2025 at 2:42:31 PM
To improve fluidity, all you have to do is change the frames per second or the resolution, although the goal is not to make it playable. :Dby andros
12/31/2025 at 6:17:39 PM
I think the proposal here is to optimize for bandwidth by minimizing number of divs, because there are fewer divs per column per frame. It might actually turn out to be more work for the browser because it has to layout the columns with divs that are not uniformly sized.by omoikane
12/31/2025 at 2:49:27 PM
That is!by andros
12/31/2025 at 6:23:45 PM
IIRC someone did exactly that around 15 years ago, a game renderer using div strips, first with Wolfenstein and then Doom. It may have been "Jacob Seidelin" who was very active experimenting with early HTML5 tech, but I've lost all links or they've vanished from the web - I only keep two screenshots I used in a lecture back then.by Jare
1/1/2026 at 4:57:59 AM
Wonder if it would be more efficient to use a single-pixel column and then draw the colours with gradient stops?by dentalnanobot
12/31/2025 at 2:46:19 PM
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.by oersted
12/31/2025 at 3:31:32 PM
If it's streaming at 60 fps, the bottleneck is in the browser, which is doing what it can :)by andros
12/31/2025 at 7:20:42 PM
My phone and TV can go to 120hz, and my PC can go to 240 with adaptive sync. There’s still plenty of room to improve.by maccard