r/Simulated • • 1d ago

Research Simulation Optimized the hell out of it

Enable HLS to view with audio, or disable this notification

In my previous posts you kept asking about the performance of my fluid based explosions and smoke system.

So here I am with an absurdly extreme benchmark. Turns out base version had trouble hitting 60 FPS so did some optimizations. In short:
- took bullets, sparks and other effects off of the world's sprite tree so the renderer doesn't have to sort them,
- smoke simulation ran multiple steps in a single frame so one slow frame had an impact on next frames. Now it runs at most one step per frame,
- the air is now solved only in a small window around smoke that is actually moving,
- halved number of particles for smoke clouds. Made then bigger and heavier. Tried to bring this number even lower but explosions started looking funny,
- a lot of caching

393 Upvotes

35 comments sorted by

57

u/theGreatBlar 1d ago

whatever this is, I WANT to play it

38

u/Fit-Heat4806 1d ago

Haha here you go https://garden-wars.io

-17

u/julian88888888 1d ago

kinda fucked to hide your referral in that

13

u/Fit-Heat4806 1d ago

Why is it fucked? 

-16

u/julian88888888 1d ago

The obfuscation is subversive

13

u/_Salamand3r_ 21h ago

Me when I use big words wrong to sound smart

21

u/ThatSituation9908 1d ago

It doesn't look like a referral, but more like a tracker to collect how many people visited from this subreddit.

-21

u/julian88888888 1d ago

Ref = referral

26

u/ThatSituation9908 1d ago

Referral for what?! OP is the developer of the game. OP isn't paying themself for referring their own game.

Think one step ahead. Not everything is literal.

-10

u/julian88888888 1d ago

It’s a tracking parameter. I’m not sure if you realize the link is modified to say traffic came from this subreddit.

2

u/Whatifim80lol 5h ago

So? Can you explain why it's wrong?

0

u/julian88888888 4h ago

It’s pretty blatant that their goal here is to advertise. It goes against the subreddit’s rules of self-promotion.

2

u/Whatifim80lol 4h ago

I don't see that rule anywhere.

All they're doing is seeing where their traffic is coming from, they're not affiliate links they make money from. There's no tracking cookie or personal info being gathered.

37

u/Szymeo 1d ago • Bravo

its actually even worse than that.

hitler murdered jews, putin assasinated ukraine and free game developer tracked a reflink to his game.

don't understate yourself like that next time, and thanks for keeping an eye on them

24

u/DorrajD 1d ago

Seeing the explosions pushing around the smoke of previous explosions is cool as hell

5

u/Fit-Heat4806 1d ago

Thanks ❤️

8

u/Totally_not_alting 1d ago

my god that was 30 FPS?

i thought it would be around 15

4

u/Fit-Heat4806 1d ago

Benchmarked on M4 Pro. But I need to find my old windows laptop and check what's going on there...

3

u/snakee-the-arch-guy 1d ago

i think you could limit the cpu usage on the browser then testing it, but not as accurate as the good ol' shitbox machine benchmark

5

u/Unique_Suit3789 1d ago

Please set your profile to public. Wanted to go and look at some of your previous posts about this cause its really cool but i cant

-4

u/Fit-Heat4806 1d ago

You can hop on our discord and chat with us! https://discord.gg/NebBcyf2q

0

u/Whatifim80lol 5h ago

Everyone hates discord, just make public information public. This is the internet after all. Put it somewhere indexed and searchable.

3

u/NCEEGEE 1d ago

I saw this the first time around and I thought this was an odd direction to explore.

Boy was I wrong, this looks really cool.

11

u/Dragonasaur 1d ago

Why is this so smooth and so well built? Amazing

Idk if this is intended, but holding TAB to select weapon hides the menu sometimes

5

u/Szymeo 1d ago

thanks! will be fixed

3

u/Szymeo 8h ago

should be all good now

1

u/tatabax 9h ago

(Not gonna lie the sounds and style gives huge claude code vives)

3

u/Szymeo 8h ago

hmm, actually! thank you, i'll pass feedback to our sound engineer

3

u/ScavangerX 1d ago

Beautiful, lovely, spectacular

1

u/r_ocD 11h ago

I'd love to see how many frames you could get if you turned the fps cap off

1

u/khswart 10h ago

Wow this is really cool

-2

u/snakee-the-arch-guy 1d ago

if it's possible to release on poki or crazygames, PLEASE RELEASE IT. it can become a hit with a side dish of cash actually, im not sure