I'm trying to fix the slowness.
when the slowness will be solved the memory allocation problem will be removed (or at least super-reduced) too.
Important information: this site is currently scheduled to go offline indefinitely by December 1st 2023.
If you wish to donate to attempt the preservation of tools and software somewhere else before it goes down, check the GoFundMe
If you wish to donate to attempt the preservation of tools and software somewhere else before it goes down, check the GoFundMe
Fear 2 Project Origin PS3 Version Arch01
- aluigi
- VVIP member

- Posts: 1916
- Joined: Thu Dec 08, 2005 12:26 pm
- Location: www.ZENHAX.com
- Has thanked: 4 times
- Been thanked: 667 times
- Contact:
- aluigi
- VVIP member

- Posts: 1916
- Joined: Thu Dec 08, 2005 12:26 pm
- Location: www.ZENHAX.com
- Has thanked: 4 times
- Been thanked: 667 times
- Contact:
Re: Fear 2 Project Origin PS3 Version Arch01
the good news is that I have fixed the script, it was caused by the usage of SIZE instead of ZSIZE.
this problem has probably caused also some damaged files (files bigger than requested).
so now the script 0.4 is ok.
the bad news is that there is also a bug in quickbms that wastes memory and I'm going to fix it immediately.
in the meantime you can use an older version like the following:
http://aluigi.org/papers/quickbms_0.5.4.zip
let me know if now it's all ok.
this problem has probably caused also some damaged files (files bigger than requested).
so now the script 0.4 is ok.
the bad news is that there is also a bug in quickbms that wastes memory and I'm going to fix it immediately.
in the meantime you can use an older version like the following:
http://aluigi.org/papers/quickbms_0.5.4.zip
let me know if now it's all ok.
-
AlphaTwentyThree
- double-veteran

- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 660 times
Re: Fear 2 Project Origin PS3 Version Arch01
yay! thanks!aluigi wrote:the good news is that I have fixed the script, it was caused by the usage of SIZE instead of ZSIZE.
Yes, I've noticed this because the XMA streams weren't parsable correctly and had the start of the next track at the end.aluigi wrote:this problem has probably caused also some damaged files (files bigger than requested).
Ok, this one seem to work perfectly. I'll get back to you as soon as I've checked the files.aluigi wrote:the bad news is that there is also a bug in quickbms that wastes memory and I'm going to fix it immediately.
in the meantime you can use an older version like the following:
http://aluigi.org/papers/quickbms_0.5.4.zip
Thanks so far!
If you like what you see, why not click the little Thank You button?
It will definitely motivate me! 
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
-
AlphaTwentyThree
- double-veteran

- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 660 times
Re: Fear 2 Project Origin PS3 Version Arch01
Checked it - looks really good! Thanks a lot for this!

If you like what you see, why not click the little Thank You button?
It will definitely motivate me! 
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
- aluigi
- VVIP member

- Posts: 1916
- Joined: Thu Dec 08, 2005 12:26 pm
- Location: www.ZENHAX.com
- Has thanked: 4 times
- Been thanked: 667 times
- Contact:
Re: Fear 2 Project Origin PS3 Version Arch01
I have released a new version of quickbms that allows you to disable the secure allocation functions using the option -9.
obviously you don't need to use it from the command-line, just create a link to quickbms.exe and add the -9 option in the Target field of the link's properties.
the problem is that there are physical and math limitations in using a secure allocation function because:
obviously you don't need to use it from the command-line, just create a link to quickbms.exe and add the -9 option in the Target field of the link's properties.
the problem is that there are physical and math limitations in using a secure allocation function because:
- VirtualAlloc is NOT malloc and so it doesn't manage the memory correctly, in short if it finds space it allocates otherwise bye bye (malloc instead moves the memory). and no, I can't use malloc with PAGE_GUARDs. the only way to limit this limitation is using linked lists for reusing old freed buffers
- malloc(1) allocates 16kb... yeah I know it's a lot but take a look at some math:
a memory page is usually 4kb
we need a page for the linked list informations, one before the buffer (buffer underflow protection), one after it (buffer overflow) and the buffer aligned to the page size.
only the informations about the linked lists are not much necessary and I could find alternative solutions to them but after all 12kb instead of 16kb doesn't change much - the linked lists (the index) are slow to handle if there are too many entries
