Tuesday, 03 April 2007

Castlevania 2 – Legacy of Darkness

Written by zilmar
Last updated Tuesday, 03 April 2007

I re-wrote a lot of the internal handling of compiled code a few builds ago. This is one of the few games that came off worse for wear for it. I was debugging in to it today to see if I could understand what was going on with the game and why it behaved worse.

I have worked out why the game is worse off. Where in 1.6 I could use protected memory and the game worked great. I currently have to turn on other self modification methods that slow the game down significantly. What the game is doing is it has 3 buffers with code in memory and one virtual address pointing to these code blocks. It constantly is changing the buffer that it points to, so turning on self mod methods detects this change and constantly recompiles these buffers.

What broke it in latter beta builds is that I found the virtual address and said this code already existed and replaced it with the old one. So it had both virtual locations pointing to the same physical location. I had built the original solution on how games like golden eye and conkers bad fur day used the TLB. I am going to re-write some of the function lookup to make use of Physical address as well as virtual address. I hope I should be able to fix this problem in the next beta build.

Read here to get access to the beta development of pj64

Comments (13) >> feed
...
written by mudlord, April 03, 2007

Thats a pretty nice fix smilies/smiley.gif.

Any luck btw with the bug I described a few months ago (with the "weird" error, and what other people have encountered with the emulator core)?

...
written by zilmar, April 03, 2007

Which bug in particular, maybe bump it up the beta forum so I remember.

...
written by Smiff, April 03, 2007

great, i'm getting news from the blog now! smilies/cheesy.gif
that makes perfect sense, and why the game needs TLB unmapping? AFAIK only the two Castlevanias affected.
(i think this should be in Developer Diaries btw )

...
written by zilmar, April 03, 2007

ok moved

...
written by Smiff, April 03, 2007

have you tried the other Castlevania ?
um, i hope this won't be another control - or a hack? smilies/wink.gif

edit: the caching sometimes makes an old version of your post show after editing. spooky smilies/wink.gif

...
written by mudlord, April 04, 2007

Which bug in particular, maybe bump it up the beta forum so I remember.


The weird "failed to allocate memory" bug. In the thread I made about it, it appears another user experiences the same thing.

...
written by Smiff, April 04, 2007

woah. leading on from this zilmar seems to have just a made a performance breakthrough - which imho we needed - core should be 50% faster (!) for the next build (due sometime next week?), applies to many of the difficult rare games.. maybe he'll post about this too (it lead on from this issue).

...
written by mudlord, April 04, 2007

heh, zilmar's just made the core 50% faster than it was for many of the more difficult games.. maybe he'll post about this too (lead on from this issue).


Wow! Thats excellent! smilies/grin.gif

...
written by zilmar, April 04, 2007

probaly about 3 games only smilies/tongue.gif

and still need to confirm it on other peoples PC's

...
written by Smiff, April 04, 2007

right but those games are AA titles (Goldeneye, Conker, PD? etc..) and currently the games most in need of a speedup.. then that's pretty bloody good.

...
written by Trotterwatch, April 05, 2007

I am currently salivating at the prospect smilies/smiley.gif Excellent news.

...
written by Crescent, June 10, 2007

Haha, I don't understand how this things works, but if you can correct the problem, I'll be extremely happy, Legacy of Darkness runs awfuly slow in version 1.6 and 1.7. I'm making a texture pack for this game using jabo 3D 8 plugin (only works in version 1.7)and the speed has been a torment all the time.

...
written by ajeet, April 23, 2008

where I can download these software

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley

busy  
< Prev

Account Login

Categories

News Archive