Русские видео

Сейчас в тренде

Иностранные видео


Скачать с ютуб C# WebAssembly/WASI Interpreter test running Doom 2 в хорошем качестве

C# WebAssembly/WASI Interpreter test running Doom 2 5 лет назад


Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса savevideohd.ru



C# WebAssembly/WASI Interpreter test running Doom 2

I'm writing an experimental WebAssembly/WASI interpreter in C# as a fun little side project. It currently runs Doom 2 in demo mode. Since there are no other ways to output the graphics, I simply dump each frame to a raw file. GIMP can then read the file to watch the video output in real-time. You just have to keep changing the height setting to make it keep reloading the file. There is currently no way to pass input to the game, so it just runs its demo mode. The interpreter rewrites the WebAssembly 8-bit opcodes into variable 8-32 bit opcodes that skip using the stack. For example, the four instruction sequence "local.get (0x20), local.get (0x20), i32.add (0x71), local.set (0x21)", which would normally perform 6 stack operations, gets rewritten as a single, 32-bit opcode: 0x20207121, which performs the operation without touching the stack. It currently runs at about 1/80th native speed, which is just enough to run Doom 2 at full speed on my PC, LOL. Believe it or not that's a huge improvement. Before rewriting the opcodes, it was running at probably 1/10000th native speed, hehe. Github link below. https://github.com/rockyjvec/GameWasm

Comments