Skip to content

MatejMagat305/Vsimulations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vsimulations

It is NOT run precise as real physic simulations! It is only demonstation what V + GPU can done ... It is euler method with step 0.5 (big step is good for see dynamic but horible for euler method) and 128 planets (it is working for 4096 too, but it is slower) to compute on GPU in V.

This project uses https://github.com/vlang/vsl and https://github.com/irishgreencitrus/raylib.v Many thanks to @raysan5 for the amazing Raylib, and to @irishgreencitrus for his excellent V wrapper.
Mainly thank to @ulises-jeremias for excelent work on OpenCL wrapper.

video:

https://www.youtube.com/watch?v=P86lRASXuH0

NOTE:

if you know how make kernel more eficient please make pull request

Releases

No releases published

Packages

No packages published