Gunz Graphic Memory Leaks?

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Developer gausho is offline
    True MemberRank
    Apr 2009 Join Date
    298Posts

    Gunz Graphic Memory Leaks?

    Gunz Graphic Memory Leaks?
    Hey Ragezone,
    I found out that if i keep my client running, after 2~3 hours it crashes.

    First, I saw in the Task Manager that every second the memory usage of the Gunz.exe proccesses is increased infinitly (until the crash).

    Then, I tried to debug which part of the code causes this thing, and found out that it is related to the graphic engine that in the end calls to 'MWidget::OnDraw' infinitly.

    More Info:

    The function RRun() in RFrameWork.cpp calls in infinite loop to g_App.OnDraw();
    which calls to Mint::GetInstance()->Draw();
    which calls to m_pMainFrame->Draw(pDC);
    And this Draw function above (in MWidget.cpp) calls to OnDraw()

    When I tried to delete this call to OnDraw() just for testing, I found out that the memory leak is gone!
    but of course also the game interface is gone and the screen becomes black - because nothing is renedered anymore.

    My questions are:
    1. how should i fix it?
    2. is it a common issue with Gunzclients?
    3. how can i keep render the screen infinitely without causing a memory leak which leads to a crash in the end?

    The person who helps will get a kind gift (represented as a code haha)

    Thanks!


  2. #2
    Member Zer0nix is online now
    MemberRank
    Aug 2020 Join Date
    54Posts

    Re: Gunz Graphic Memory Leaks?

    Which source?

  3. #3
    Developer gausho is offline
    True MemberRank
    Apr 2009 Join Date
    298Posts

    Re: Gunz Graphic Memory Leaks?

    Custom source im working on, im not sure what is it based on but i compared the code flow that i mentioned above to few other sources and it looks exactly the same..

  4. #4
    Aikatsu! jorklenis2 is offline
    True MemberRank
    Oct 2011 Join Date
    PanamáLocation
    686Posts

    Re: Gunz Graphic Memory Leaks?

    You should not bother with that, we are in 2021 and everyone must have a nasa PC, on my PC I open up to 15 gunz clients at the same time and it does not cause me lag.

    Answering your question because I have a friend who knows about that topic and I think I managed to lower the performance of gunz.
    You Rock My World

  5. #5
    Developer gausho is offline
    True MemberRank
    Apr 2009 Join Date
    298Posts

    Re: Gunz Graphic Memory Leaks?

    jorklenis i agree that the memory amount is not an issue, but the thing i want to solve is that it leads to a client crash after few hours if being openned.

  6. #6
    Member Zer0nix is online now
    MemberRank
    Aug 2020 Join Date
    54Posts

    Re: Gunz Graphic Memory Leaks?

    Did you try to another pc?

  7. #7
    Developer gausho is offline
    True MemberRank
    Apr 2009 Join Date
    298Posts
    Yes i tried on windows 10 and windows XP, it happens on both of them so its probably not related to the OS or the PC

    Vs2019
    Last edited by PyroSamurai; 15-02-21 at 07:01 PM.

  8. #8
    Member Zer0nix is online now
    MemberRank
    Aug 2020 Join Date
    54Posts
    LoL? my source is about 12-19 VS. and there is no problem about crashing or something increasing from memory.

    I have both. You think every source that compiling from 2012 to 2019 vs is cause like that are you kidding me?
    Last edited by PyroSamurai; 15-02-21 at 07:01 PM.

  9. #9
    Developer gausho is offline
    True MemberRank
    Apr 2009 Join Date
    298Posts

    Re: Gunz Graphic Memory Leaks?

    Any other ideas guys?

  10. #10
    Ultimate Member NesuxGxx is offline
    MemberRank
    May 2014 Join Date
    D:/TrunksLocation
    175Posts

    Re: Gunz Graphic Memory Leaks?

    Try to place the original interface, in case you have an xml error that is creating an infinite error, it has happened to me a few times when I edit the configuration.xml and then the interface gets slow, it can also be a programming error, or structure of the functions, bad destruction of the elements that continue to be created despite the fact that it is no longer in the area where they are needed, that's why mint2 is badly built, the truth is I want to stop prescribing it

  11. #11
    Developer gausho is offline
    True MemberRank
    Apr 2009 Join Date
    298Posts

    Re: Gunz Graphic Memory Leaks?

    Updating that compiling with vs2012 instead of vs2019 did not change anything (of course)
    but i had to test it..

  12. #12
    Ultimate Member NesuxGxx is offline
    MemberRank
    May 2014 Join Date
    D:/TrunksLocation
    175Posts

    Re: Gunz Graphic Memory Leaks?

    That would not have to be the problem, you have tried another source, a clean one, updating is nothing to write home about if you have basic programming knowledge, by the truth you just have to accommodate pure stupidities xddddxdxdxdxd

  13. #13
    Developer gausho is offline
    True MemberRank
    Apr 2009 Join Date
    298Posts

    Re: Gunz Graphic Memory Leaks?

    i tried original interface now and it didnt help. what else do you recommend me to check?

  14. #14
    Ultimate Member NesuxGxx is offline
    MemberRank
    May 2014 Join Date
    D:/TrunksLocation
    175Posts

    Re: Gunz Graphic Memory Leaks?

    I did not know how to tell you, if you do not touch this, what could it be, in visual stuido it has a debug function that lets you see how much ram the functions are consuming, for me this is a problem when touching the mint2, to add something, it happened when I wanted to obtain the soruce using override

  15. #15
    Member Zer0nix is online now
    MemberRank
    Aug 2020 Join Date
    54Posts

    Re: Gunz Graphic Memory Leaks?

    Solved.
    Last edited by Zer0nix; 17-02-21 at 01:46 AM.



Page 1 of 2 12 LastLast

Advertisement