-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leak #11
Comments
How can I run this program? |
I've also found some pretty serious memory leak issues. I'm using the VisualStudio version of the software and I'm building it myself, I just added the glew-2.1.0. I've found that each time a level is loaded, it increases the amount of RAM used, so I think the issue might be somewhere around the loading level system. Here's the RAM usage as shown from the VisualStudio Diagnostic Tool This is what happens if you load the levels one after the other. During the level the RAM usage stays perfectly constant, and only spikes on the new level. If you load a level once again after having already played it, it still increases the RAM usage |
Yeah, I noticed that too. He (or someone) needs to make the game unload the previous level when loading a new one. |
That sounds like it's a straight up case of not freeing resources that should be freed. Maybe take a look with Valgrind? |
how can i run this program?
…On Sat, Jun 22, 2019 at 2:05 PM ehx-v1 ***@***.***> wrote:
If you load a level once again after having already played it, it still
increases the RAM usage
That sounds like it's a straight up case of not freeing resources that
should be freed. Maybe take a look with Valgrind?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#11?email_source=notifications&email_token=ALUKMH677ODCIKIO2LNKWUDP3YIP7A5CNFSM4G65PZH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYKIBJI#issuecomment-504660133>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALUKMHZSOLZ7T4Q4TPB4BVDP3YIP7ANCNFSM4G65PZHQ>
.
|
Hi.
On Sat, Jun 29, 2019 at 12:38 PM first windows <[email protected]>
wrote:
… how can i run this program?
On Sat, Jun 22, 2019 at 2:05 PM ehx-v1 ***@***.***> wrote:
> If you load a level once again after having already played it, it still
> increases the RAM usage
>
> That sounds like it's a straight up case of not freeing resources that
> should be freed. Maybe take a look with Valgrind?
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#11?email_source=notifications&email_token=ALUKMH677ODCIKIO2LNKWUDP3YIP7A5CNFSM4G65PZH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYKIBJI#issuecomment-504660133>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ALUKMHZSOLZ7T4Q4TPB4BVDP3YIP7ANCNFSM4G65PZHQ>
> .
>
|
Hey, I think I narrowed down the memory leak to the mesh class, don't know if this helps anyone or if anyone else is trying to fix this |
@Chaosminecraft When you download the repository, there's some files directly in the ZIP, and most of the stuff is in the folder |
@ehx-v1 thanks, I did not explore the folders yet, I'll look if I still have that or I download it again. |
I am using pre-built exe.
The more I use it the more it takes ram. The ram usage is increasing rapidly. First level it's just takes ~50 mb per thing, The next levels starts to take hundreds (100+) ram. After few changes I got ~1GB. Last ram usage was ~1.8 GB and my laptop was frozen. I had to "hard shutdown" it (hold power button for some time).
My laptop:
64x bit Win 8.1 4gb ram.
The text was updated successfully, but these errors were encountered: