Hacking Inside WBFS

PsyBlade

Snake Charmer
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
How are the the blocks allocated? (i guess simply the first free block)
Can u try different allocation policies?
Maybe from the largest continious group of free blocks (aka worst-fit), from the first group which is large enough for the game (first-fit) or from the smallest large enough group (best-fit)?
 

PsyBlade

Snake Charmer
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
While I dont think its a critical problem fragmentation seems ridiculously high.
I would like to try myself but as I dont know much C and nothing of libwbfs I cant make head or tails of the allocation function.
And as you were experimenting anyway I wanted to share my ideas about it.
 

PsyBlade

Snake Charmer
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
Well ... I knew that much.
The code itself was the problem.
But once I got that it is a simple bitmap the rest was easy.

I implemented a variation of the worst fit algorithm.
Everything else would require deeper changes in the code and I only wanted to play around a bit.


To test it I used
CODE./wwt -q init a.wbfs -s512 -f; ./wwt -qp a.wbfs phantom 150x1-4g; for ((i=0;i
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: @AncientBoi