Knytt Stories - Memory leak? Maybe?

  • 10 Replies
  • 4546 Views
*

Offline Miyako

  • 36
  • 2
  • 5Y5T3M M41D3N
    • View Profile
Knytt Stories - Memory leak? Maybe?
« on: January 16, 2010, 12:04:35 »
Well.. Look for yourself. I think Drakkan might be the cause.

I say we rise against all Dragons, they are clearly too powerful for Knytt Stories.

Or maybe its the Fairies..

http://sai.lpchip.com/v/ksmemleak.ogv

*

Offline LPChip

  • You can only truly help other people by allowing them to fail.
  • 3510
  • 138
  • Excel at the thing you're the best at!
    • View Profile
    • LPChip Interactive
Re: Knytt Stories - Memory leak? Maybe?
« Reply #1 on: January 16, 2010, 12:16:23 »
I believe Drakkan uses a lot of custom content, like tile sets/music/ambiances. The game pre-caches everything which raises the memory load. I think this is normal behaviour.
on the left, above my avatar.

MODPlug Central Forum
"If I tried to kill you, I'd end up with a big fat hole through my laptop." - Chironex

*

Offline Miyako

  • 36
  • 2
  • 5Y5T3M M41D3N
    • View Profile
Re: Knytt Stories - Memory leak? Maybe?
« Reply #2 on: January 16, 2010, 12:22:44 »
Yeah its quite severe though, expecially compared to a better level in my opinion. There has to be something thats causing the overload. There isnt much in Frozen Mountain that isnt in Monster and theyre like 150mb in the difference.

*

Offline LPChip

  • You can only truly help other people by allowing them to fail.
  • 3510
  • 138
  • Excel at the thing you're the best at!
    • View Profile
    • LPChip Interactive
Re: Knytt Stories - Memory leak? Maybe?
« Reply #3 on: January 16, 2010, 13:02:17 »
If you look at the size of the levels, are they equal too? I bet Drakkan's level is huge in size, where Monster isn't.
on the left, above my avatar.

MODPlug Central Forum
"If I tried to kill you, I'd end up with a big fat hole through my laptop." - Chironex

*

Offline Miyako

  • 36
  • 2
  • 5Y5T3M M41D3N
    • View Profile
Re: Knytt Stories - Memory leak? Maybe?
« Reply #4 on: January 16, 2010, 13:13:58 »
Is every single block preloaded? That might explain it.

*

Offline LPChip

  • You can only truly help other people by allowing them to fail.
  • 3510
  • 138
  • Excel at the thing you're the best at!
    • View Profile
    • LPChip Interactive
Re: Knytt Stories - Memory leak? Maybe?
« Reply #5 on: January 16, 2010, 13:58:38 »
Is every single block preloaded? That might explain it.

I do know a lot is preloaded. Nifflas explained it was the only way.
on the left, above my avatar.

MODPlug Central Forum
"If I tried to kill you, I'd end up with a big fat hole through my laptop." - Chironex

*

Offline Looki

  • 166
  • 7
    • View Profile
Re: Knytt Stories - Memory leak? Maybe?
« Reply #6 on: January 16, 2010, 17:10:35 »
All room data is are preloaded, but the tilesets and gradients are loaded when they're needed.

*

Offline Exp HP

  • 259
  • 2
  • 1 in 166 children
    • View Profile
Re: Knytt Stories - Memory leak? Maybe?
« Reply #7 on: January 16, 2010, 22:06:04 »
All room data is are preloaded, but the tilesets and gradients are loaded when they're needed.
This I can confirm; all custom content is loaded when needed. If you edit a tileset/background image in the middle of playing a level, your changes will show up when you leave and reenter the room.  Same goes with ambiance and music.  On the other hand, for level data changes to show up, you must start up a new game window.
(secretly hoping nobody will mention the object compendium)
My stars:   :hiddenstar:(Object Compendium):hiddenstar:(By PM)
Check out my Youtube channel for some terrible Let's Plays by a socially inept nerd!

*

Offline minmay

  • 654
  • 8
    • View Profile
    • Cow Muffins
Re: Knytt Stories - Memory leak? Maybe?
« Reply #8 on: January 16, 2010, 23:19:42 »
Are the tilesets and gradients un-loaded when they're no longer needed?  If not, that sounds like a leak to me.

*

Offline Miyako

  • 36
  • 2
  • 5Y5T3M M41D3N
    • View Profile
Re: Knytt Stories - Memory leak? Maybe?
« Reply #9 on: January 17, 2010, 13:09:29 »
All the stuff you said is covered in the video :p

*

Offline Nifflas

  • 1532
  • 61
    • View Profile
Re: Knytt Stories - Memory leak? Maybe?
« Reply #10 on: January 19, 2010, 17:04:18 »
Yeah, it's a memory leak. Knytt Stories uses an old version of the Animated Picture extension. I detected the leak during the creation of Saira, and contacted the author of the extension who fixed it instantly. I forgot to update Knytt Stories though. I guess it's time for another update soon, I guess it's a good idea to add the proportional full screen mode at the same time which is new to a recent build of MMF2.

This should only be related to the custom objects though. Custom music, tilesets, and gradients shouldn't suffer from this problem unless there's a problem with Multimedia Fusion 2.
« Last Edit: January 19, 2010, 17:08:05 by Nifflas »