scene.org File Archive

File download

<root>­/­demos­/­artists­/­danilw/vk_auto_tetris.zip

File size:
135 292 bytes (132.12K)

Preview

  • VK_Auto_tetris/ dir
  • VK_Auto_tetris/README_VK_Auto_tetris.txt 1.89K
  • VK_Auto_tetris/VKglsl_at.exe 164.00K
  • VK_Auto_tetris/VKglsl_at_linux 119.18K

file_id.diz

What is it: GLSL simple bots for GPU, look source code link to see how it work. Bots burn in ~2-3 min reason explained in code.
I made it just for fun.

original shader source code https://www.shadertoy.com/view/3dlSzs
launcher source code https://github.com/danilw/vulkan-shadertoy-launcher

more info in this blog
https://arugl.medium.com/launching-619-thousand-tetris-on-gpu-their-rendering-and-a-simple-bot-f2449b607db1


# 2022 update - removed compressed by upx build that ~50kb size, because upx comression detected as virus everywhere now... (non compressed build now) 


Control: use Mouse to scroll
Space to pause
Arrows to move block in player mode


Keys 0 1 2 3 to set demo mode (number of bots), 0 is default

(more than 100k can be considered as stress-test for GPU)

Extra keys(WARNING!) 4 to 999k bots
(do not press!) 5 (requires 2Gb VRAM) create 5.5mil bots (scroll work correct, board ID display only last 6 digits of number)
Default frame_delay 5sec if application crash then set delay longer, look below.

Esc to exit


UI:
Yellow number total bots, Big left number is board ID, small right is score of board.
After 20 sec white number is number of remaining bots.
Scroll mouse(drag) on left or right side to scroll board, white scroll bars also work.


Launch options:
--demo <value> where value is 0 or 1 or 2 etc to boot demo mode on start (default 0)
--frame_delay <value> where value is any number>0(not 0) set Fence wait timer (seconds), that value is seconds to wait for frame (default 5) (max 99)
--gpu <X> where X is GPU_ID (0 or 1 or 2 etc) to use these GPU to launch this shader.
Launching it on external GPU has OS limitation, Windows ignore "WaitForFence" timer, so it crashed on too long frame time no matter what.


AMD Vulkan drivers fix their bugs related to this shader in the summer 2021. (update to latest version)
This shader does work on AMD GPUs now.

This shader work in Nvidia as expected.