Welcome, Guest. Please login or register.

Author Topic: NetSurf OS3.x Issues  (Read 41543 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline NovaCoder

Re: NetSurf OS3.x Issues
« on: April 29, 2016, 01:46:57 AM »
Quote from: utri007;807689
I made some testing.

Noticed that largest free block is still getting smaller every time, and memory is slowly eaten.  Loading those pages about a dozen times reserves about 7mb ram. Does it free memory at all??? Amiga.org loaded I have 35mb free ram, test.html loaded I have 35mb free ram. Going amiga.org again eats memory less than 1mb. First time loaded amiga.org uses about 5-7mb ram.

So what it keeps on ram?


Are you using gcc to build this beastie Chris?

When I was porting Quake 2 to AGA I discovered that the standard memory allocation functions 'malloc/free' are buggy and would not always release allocated memory (I was compiling with -noixemul BTW).

The solution (which came to me after sacrificing many virgins), was to wrap my memory allocation functions and redirect to the Amiga OS standard AllocVec/FreeVec functions.

If that doesn't work you'll need to write your own hunk allocation memory manager.

http://gameprogrammingpatterns.com/object-pool.html
« Last Edit: April 29, 2016, 02:30:34 AM by NovaCoder »
Life begins at 100 MIPS!


Nice Ports on AmiNet!