April 22, 2024, 4:08 a.m. | Michael Mironidis

DEV Community dev.to




The most important optimization yet


While the previous blog post's asynchronous grass generation code was a big step in the right direction, the biggest optimization yet has come: Custom vertex shading!





The problem


CPUs are fast, general-purpose processors for handling computations. GPUs are specially designed for parallel workloads (such as computing visuals for your high-res screen).


From a hardware and game loop perspective, the CPU computes the game logic every frame while the GPU renders the results. Bevy calls these …

asynchronous bevy big blog code cpus dev game gamedev general gpus optimization processors rust shader vertex workloads

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Lead Data Modeler

@ Sherwin-Williams | Cleveland, OH, United States