You are browsing as a guest. Sign up (or log in) to start making projects!

2h 47m 51s logged

I’m going to try switching to a slightly different style of devlog, where I effectively write somewhat comprehensive notes about what I’m doing as I do it, and then post them here. I write these in an external note program (obsidian) and copy paste them in here.

30/07/26

  • Added in some UI that lets you see the gas amount/pressure/temperature(computed via ideal gas law) at any given point
    • This makes me realize some potential problems with my temperature systems, as it seems like with how the system is currently designed if I add in more gas the temperature does not increase (though this kind of makes sense, considering the assumptions of the ideal gas law)
  • It turns out that with my current framerate (60 FPS) I cannot run gasses at much higher than 1 kelvin, so I tried increasing the simulation framerate to 600 FPS. To my astonishment, my CPU is perfectly capable of running my simulation timestep at 600HZ. This being stated, it is not in fact capable of running it much higher, and 600HZ seems to only really be enough to simulate gases at ~50K. In order to go higher, for now I think I’ll resort to “slowing down” the simulation speed by lowering the timestep of the simulation (how much time it believes is in-between each frame) without really lowering the speed my CPU runs the simulation at (keep it at ~600HZ). This has the effect of increasing the simulation stability massively, with the downside of making it run much slower than realtime. What I found to work okay-ish was running my simulation running at 500000 frames per simulation seconds, at about 1/80th of realtime. Unfortunately even when I slow it down there are a lot of artifacts made by high speed gases, but I’m not sure I can really do much about those without really going hard into CFD (computational fluid dynamics).
  • The last thing I did was modify my rendering shader so that it can visualize the gases’ pressure. I also coded in temperature but that does not seem to function for some inexplicable reason and I don’t quite have the time at the moment to fix it.

I’m also going to try my absolute hardest to get a video attachment working.

0
15

Comments 0

No comments yet. Be the first!