I can't check this just yet because I have to go to work.
Out of curiosity, what did you change?
Out of curiosity, what did you change?
Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!
Quick links for Beyond New Horizons
- Download latest version
- Wiki
- FAQ
- Report bugs here
- Bug Tracker on Github
Quick links for Maelstrom
- Download the latest version of Maelstrom
- Download the latest version of ERAS II
- Download the latest version of New Horizons on Maelstrom
Quick links for PotC: New Horizons
- Download latest version
- Wiki
- FAQ
- Report bugs here
Thanks to YOUR votes, GOG.com now sells:
- Sea Dogs
- Sea Dogs: Caribbean Tales
- Sea Dogs: City of Abandoned Ships
Vote now to add Pirates of the Caribbean to the list!
Quick links for AoP2: Gentlemen of Fortune 2
- Downloads and info
- ModDB Profile
- Forums Archive
A Pirate Podcast with Interviews
Music, Comedy and all things Pirate!
- Episode Guide - About - Subscribe -
- Twitter - Facebook - iTunes - Android -
- Youtube - Fill the Coffers -
I removed some obsolete code concerning nation multipliers for ships. These multipliers where copied to a character each time the ship update function was called, and they where never used from there again. All cases where they needed it they looked in a different way which is just as fast.I can't check this just yet because I have to go to work.
Out of curiosity, what did you change?
Nation multipliers? Like the ones at the top of ships_init.c? I'd expect those to be applied to a ship only once and that's the end of it.I removed some obsolete code concerning nation multipliers for ships. These multipliers where copied to a character each time the ship update function was called, and they where never used from there again. All cases where they needed it they looked in a different way which is just as fast.
That's what I also expected but turned out they didn't. I'm going to look into it more but at least I removed a loop again which was called every millisecond.Nation multipliers? Like the ones at the top of ships_init.c? I'd expect those to be applied to a ship only once and that's the end of it.
That's what I also expected but turned out they didn't. I'm going to look into it more but at least I removed a loop again which was called every millisecond.
//Seriously why ... -Levis
/*
if (SeaCameras.Camera == "SeaDeckCamera" && sti(rCharacter.index) == GetMainCharacterIndex())
{
switch (GetTargetPlatform())
{
case "xbox":
aTmpSkill.Accuracy = 1.0;
break;
case "pc":
if(iRealismMode == 0) // 1.03
{
aTmpSkill.Accuracy = Clampf(stf(aTmpSkill.Accuracy) + 0.4);
}
break;
}
}*/
I am now sailing a Hoy and performance is good. One time sailing into Bonaire the dreaded stuttering hit but otherwise it is smooth. The call or poll that is killing me occurs every 1/2 second and can get so bad the ship stops and starts. This affects everything from the crew walking around to the spyglass to the waves.
On another note I recently bought a new video card and now POTC looks worse than ever. It actually seems that it is more the drivers than the hardware causing this. Frame rates are about the same. Many things are pixelated like it is running in 16 bit mode, but it isn't. I recently found a hardware testing app and it says that while this video card is excellent at 3D it is poor at 2D. It is worse than intel graphics at 2D stuff. It is looking like it is seeing many of the textures in POTC as 2D and making them look bad. This mostly affects characters and some building textures. The water and ships still look great. Just a heads up on this.
Do you have any screenshots of that? Now you've got me curious.On another note I recently bought a new video card and now POTC looks worse than ever. It actually seems that it is more the drivers than the hardware causing this. Frame rates are about the same. Many things are pixelated like it is running in 16 bit mode, but it isn't. I recently found a hardware testing app and it says that while this video card is excellent at 3D it is poor at 2D. It is worse than intel graphics at 2D stuff. It is looking like it is seeing many of the textures in POTC as 2D and making them look bad. This mostly affects characters and some building textures. The water and ships still look great. Just a heads up on this.
Why are you sailing only one small ship then? Just trying to understand here.I only got LOMs before to keep score and to get better ships late in the game. I am no longer concerned about that stuff as I only sail one small ship now.
Which one is it, do you think?Theres a large function called about each second in the shipAI code. I need to rework that one.
Ah yes, that is indeed a big function that is called very often.If I remember right it was this one
Ship_CheckMainCharacter
This function handles multiple things but also handles if you can board to other ships and forts.
It loops trough all ships and forts so here probably is something to gain.