Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: RAM dedicated to video for my SFML app seems it's not enough  (Read 1639 times)

0 Members and 1 Guest are viewing this topic.

Tigre Pablito

  • Full Member
  • ***
  • Posts: 226
    • View Profile
    • Email
Hi, Ladies and Guys

Once again, my poor Sonic has detected a problem. Though I'm almost sure it is the last one. If I'm not wrong, my notebook came from factory with about 800 MB of RAM dedicated to video, then I cometed the error  :P of changing the system to 64 bit and ocurred the problems as some of you perhaps remember. Then I changed to Windows 7 Ultimate 32 bit, which let my app run normally fast again  ;D (in notebook Pentium Dual Core T4500 2.30 GHz 2.0 GB RAM) and now have only 64 MB of RAM dedicated to video, and though I tried to change that, I couldn't. I suspect that this is the cause why my poor Sonic runs out of memory after playing 3 or 4 levels, when loading the following.

https://www.dropbox.com/s/7nk068u65071ryt/Sonic%20The%20Hedgehog%20%26%20Knuckles%20By%20Pablito.rar?dl=0

Can someone help me to solve this?
Thank you very much



Gambit

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: RAM dedicated to video for my SFML app seems it's not enough
« Reply #1 on: June 13, 2016, 07:04:23 am »
Can you please post the source and not the binaries? For those of us who do not have unlimited/decent internet, the download is almost 40MB.

As for the problem, I would suspect a memory leak is to blame but I (And noone else) can be sure unless you post the source.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
AW: RAM dedicated to video for my SFML app seems it's not enough
« Reply #2 on: June 13, 2016, 12:16:49 pm »
If the usage increases after a few levels, then you likely leak memory somewhere.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Tigre Pablito

  • Full Member
  • ***
  • Posts: 226
    • View Profile
    • Email
Re: RAM dedicated to video for my SFML app seems it's not enough
« Reply #3 on: June 15, 2016, 07:26:16 pm »
Hi people

here is the project source code with the data files

https://www.dropbox.com/s/mvwego2fcyxtty5/DEVELOPING%20Sonic%20The%20Hedgehog%2032%20bit%20by%20Pablito.rar?dl=0

i made an important effort to reduce the .rar file's size; deleted some music files and changed all the .bmp to .png

on the hero select screen, you can press keys 1 to 6 to select a zone ... first set the cursor on the hero you chose

i think probably there is a leak of memory somewhere, but perhaps also the problem of the RAM dedicated to video