diff --git a/PixelEngine/Fluid.cs b/PixelEngine/Fluid.cs index 4a1c0d5..76c5f8f 100644 --- a/PixelEngine/Fluid.cs +++ b/PixelEngine/Fluid.cs @@ -1,5 +1,4 @@ using System.Numerics; -using Hybridizer.Runtime.CUDAImports; using Raylib_CsLo; using static Raylib_CsLo.RayMath; @@ -61,9 +60,7 @@ public class Fluid diffuse(2, Vy0, Vy, visc, dt); project(Vx0, Vy0, Vx, Vy); - HybRunner runner = HybRunner.Cuda().SetDistrib(32, 32, 16, 16, 1, 0); - wrapper = runner.Wrap(new Game()); - wrapper.Run(wrapper.advect(this,1, Vx, Vx0, Vx0, Vy0, dt)); + advect(this, 1, Vx, Vx0, Vx0, Vy0, dt); advect(this,2, Vy, Vy0, Vx0, Vy0, dt); project(Vx, Vy, Vx0, Vy0); @@ -192,9 +189,6 @@ public class Fluid set_bnd(2, velocY); } - - - [EntryPoint("run")] public void advect(Fluid fluid,int b, float[] d, float[] d0, float[] velocX, float[] velocY, float dt) { float i0, i1, j0, j1; diff --git a/PixelEngine/Game.cs b/PixelEngine/Game.cs index d93908a..b791522 100644 --- a/PixelEngine/Game.cs +++ b/PixelEngine/Game.cs @@ -7,8 +7,8 @@ namespace PixelEngine; public class Game { - private const int Size = 64; - private const int Scale = 10; + private const int Size = 256; + private const int Scale = 2; private const int Iter = 10; private const float Dt = 0.2f; private const float Diffusion = 0f; diff --git a/PixelEngine/PixelEngine.csproj b/PixelEngine/PixelEngine.csproj index 7eba0f1..05fe3e4 100644 --- a/PixelEngine/PixelEngine.csproj +++ b/PixelEngine/PixelEngine.csproj @@ -9,9 +9,7 @@ - - diff --git a/PixelEngine/Program.cs b/PixelEngine/Program.cs index 0bb0fdb..6587ca4 100644 --- a/PixelEngine/Program.cs +++ b/PixelEngine/Program.cs @@ -15,6 +15,7 @@ game.PMouse = GetMousePosition(); game.Start(); + while (!WindowShouldClose()) { game.HandleInput();