[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/v/ - Video Games


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1772913654614385.jpg (66 KB, 1080x594)
66 KB
66 KB JPG
>memory leak after 3 hours
>no big deal
Game devs are not real
>>
none of this is real. its all made up. fake. an illusion. everything. its aLL A FUCKING LIE!!!
>>
Why specifically 3 or 4 hours? Shouldn't streamers be fine since their PCs should have lots of RAM?
>>
>>736242684
I looked him up and he's some nobody, the only person who has played his games are cat ladies.
I proclaim that op made that tweet, and this is a subtle shill thread. Begone Matt!
>>
>>736243243
Who died and made (you) king of /v/?
>>
>>736242684
If you know your game has a memory leak, why wouldn't you just fix it?
>>
>>736243131
The thing about memory leaks is they keep leaking
>>
>>736243319
Kings are usually appointed via divine providence so this is a stupid question to ask
>>
Hey as long as it works
>>
How is memory leak even real.
Why not just code something like
If memoryleak = true
Flush

Or something like that
>>
>>736243356
Garbage cleanup is rarely just 1 issue to fix. Its more like a bunch of little holes to find, and theres not really a quick way to identify where they are accumulating from if you arent technical.
>>
>>736243636
You can't just flush a computer like a toilet anon.
>>
>>736243648
Nigga just free your mallocs
>>
>>736243356
Aren't all of his games made in flash?
>>
>>736243757
the whole problem stems from being unable to just instantly free all the shit without causing a problem
>>
File: 1616100226912.jpg (99 KB, 600x468)
99 KB
99 KB JPG
>>736243636
>>736243648
in my engine i just free the entire heap each time a new scene is loaded
>>
>>736243319
I did
>>
>>736243960
Rest in peace.
>>
>>736242684
some memory leaks can be very tricky to find
>>
How do you fix a memory leak? Can't you just stuff some code where it's coming out of to block it?
>>
>>736244104
I typically just shove a sock in my ear when my memory leaks.
>>
>>736244104
Memory leaks work in reverse. They slowly fill up instead of emptying, so you have to crawl backwards through the memory sewage system to find the leak.
>>
>>736244104
only if you can find out where it's coming from
>>
should've used rust
>>
File: xysafrb70iec1.gif (1.48 MB, 498x278)
1.48 MB
1.48 MB GIF
>>736242684
>non-green greentexting
>>
File: 1770826214380220.jpg (50 KB, 600x337)
50 KB
50 KB JPG
>2026
>still not using rust
>>
>>736242684
Just allocate all free ram on startup and use that
>>
>>736244614
I think there's a space after the meme arrow, making it discord-text instead of greentext
>>
>>736243319
>Who died and made (you) king of /v/?

King Aack An Hero
>>
>>736244647
Every non-trivial rust project is half unsafe code anyway.
The answer is just not being stupid.
>>
>>736243319
We voted on it last night and that anon was determined to be the best poster on 4chan and possibly the internet.
>>
>>736244597
>>736244647
Most gamedevs can barely shit together their C++/C# abominations. Why do you think that they are capable of grasping Rust properly?
>>
>>736242684
Just automatically have the game autosave and reset after 3 hours
>>
File: 1755050441773977.png (631 KB, 1329x1898)
631 KB
631 KB PNG
>>736243916
This is the way.
>>
Just force a crash every 3 hours so you have to restart the game
EZ fix
>>
>>736244104
it depends on what engine/language he's using. he probably just has a ton of event listeners that never get unsubscribed.
>>
>imagine not using flex tape
>>
>>736242684
why is he greentexting with the space after the arrow, I thought he was a le oldfag
>>
>>736242684
almost every large program will have a memory leak of some kind
I honestly doubt you even know what a memory leak is
>>
should have told the AI to make no mistakes and plug all memory leaks
>>
>>736243131
put a bucket under a leaky pipe and it's fine for awhile but after a few hours the water starts to overflow. you now know how a leak works.
>>
>>736245223
Neither do you, so don’t act like you do
>>
>>736242684
Just vibe code and fix it. Memory leaks are very easy to fix with AI.
>>
>>736242684
>Memory Leak

Pssst... use one of these. *wink*
>>
>>736245446
got one of these in my closet. with current RAM prices I'm probably a billionaire now.
>>
>>736243960
f
>>
>>736242684
it's a mindset thing
hard to teach or correct
>>
Here I coded a fix for you:

new_thread({
sleep(1000*60*60*3);
alert("Your game will close in 15 minutes, please save and restart!");
sleep(1000*60*15);
alert("Your game will close in 1 minute, please save and restart NOW!!!!!");
sleep(1000*60);
game.quit();
});
>>
>>736246138
that would be 16 minutes not 15 tho
>>
>>736246138
a real unreal engine 5 developer
>>
>>736244706
Inline quote formatting predates both discord and the very idea of imageboards.
That started with email in the 70s.
>>
>>736246138
I'm pretty sure you would unironically get fewer complaints if you just randomly crashed the game (saving beforehand of course).

Something like
sleep 3 hours + random(1, 30) minutes
save()
exit()
>>
>>736243648
Pretty much every single garbage clear issue is the dev being a drooling retard and missing a decimal value.
If any calculation does not go back to 0 you get a build up of shit in the ram as it can't clear unresolved values
>>
>>736244647
most rust users are brainlets that spam smart pointers and shit so that their memory is deallocated when its no longer referenced. its essentially garbage collection except garbage collection is usually deferred so its batched together instead of needing to free memory the moment the objects lifetime ends.

the funny thing about garbage collection is that memory leaks are still possible, if you do retarded shit like hold onto memory from old objects in new ones (example an ever growing list)
>>
>>736246138
Just like windows!
>>
>>736246461
I hate that you're right.
>>
>>736243636
How can you tell what memory to keep and what to flush? You can force reload everything, sure, but that interrupts gameplay (some games do this, BotW for example).

Programs already try to clear memory when it's not needed anymore. Memory leaks are when something goes wrong with that.
>>
I was going to ask how the fuck they manage to make a game use up 8gb of ram but then I realized these are literally jeetkins coding with AI
>>
>>736242684
Of course it's not a big deal
Players will refund his game before the 2 hour mark
>>
>>736247297
why?
>>
>>736242684
This is an issue that Voice of the Void has, after extended playtime without reloading the game starts to get unstable.
As going longer than 3 hours without dying generally doesn't happen its not really an issue, but to counter it the dev put in special events that only happen if you go so many hours that cause the game to crash.
You can avoid a couple of them if you try hard enough but IIRC the 12 hour one can't be dodged.
>>
Why not just run a process to continually download ram to counteract the leak?
>>
>>736242684
Matt's really fucking dumb, but he'll get around to fixing it.
I Really like EBF and his art and will probably get around to buying this after he fixes the leak
>>
>>736244597
rust considers memory leaks safe



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.