У нас вы можете посмотреть бесплатно Making Cellular Automata Run MUCH Faster (Game of Life) или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Code from video: https://editor.p5js.org/BarneyCodes/s... Conway's Game of Life is a classic creative coding challenge and today we look at how to optimise it to run fast in P5js using shaders! The method used is a sort of pseudo compute shader where the frame from the last generation of the game of life is fed into the shader as the basis for the next generation. The shader then outputs this new generation onto the screen where it is fed back into the shader, creating a loop that allows the game of life to run MUCH faster than if it was done on the CPU! Follow me: Support the channel: https://www.youtube.com/@BarneyCodes/... Twitter: / barneycodes Reddit: / barneycodes Chapters: 0:00 Intro 0:15 Shaders in P5js 0:30 Conway's Game of Life 0:57 CPU vs GPU 1:33 Loading a shader in P5js 2:09 Setup function 3:18 Draw function 3:45 Passing the screen into the shader 4:32 The vertex shader 4:46 The fragment shader 5:11 Uniform vs Varying 5:36 Current cell state 6:16 Number of alive neighbours 7:16 Implementing the GOL rules 8:22 Output from the shader 8:39 Final result #creativecoding #p5js #gameoflife