Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Massive Frame Drops in Eras and Caribe Stories

A topic by PanamaPedro created Oct 23, 2019 Views: 317 Replies: 5
Viewing posts 1 to 5

Most of the time, the game runs very well. However, in specific circumstances, in certain mods, the framerate drops to unplayable levels inexplicably. In Caribe Stories, the framerate sometimes drops to slideshow levels when approaching other ships, and not under any other circumstances that I've run into. In Eras, the framerate halves during storms. These frame drops did not occur in the Storm Engine versions of City of Abandoned Ships and Caribbean Tales.

I'm using Windows 10 with no anti aliasing and vsync on.  I think the frame drops are definitely due to a software issue rather than a hardware, but please tell me if I can give any more information to aid in finding the cause of the problem, and if anybody else has had problems with this. Thanks in advance.

I want to inform you that I have read this message and have been doing some research.  I don't have a Win10 machine I can devote to testing/developing.  I can occasionally try one briefly, but it doesn't have this problem you describe in the storms.

Given what I've uncovered on the internet, Microsoft even specifies that a certain update for Win10 can cause DirectX 9 performance problems but they kept it in place for "security."  LOL

Anyway, some game developers in various forums have uncovered some specific device options at DX startup that might cause this, so I've put an additional log message in the game engine launch to capture the values used.  I've also got a few other things I will want you to try, but I need to get my volunteer testers to devote some time before I upload the engine modifications.  "We" are one software developer, doing this game part-time because I have a full-time job, so give me a few days to get this sorted and I will upload to Itch, then I will reply back with some things I want you to try.

In the meantime, find a storm in ERAS, and save the game there...keep the save file file handy because I will want you to try some options using that save game in the storm.


(1 edit)

Alright, I've made some saves and I'll experiment with the settings some more in the meanwhile. From what I've seen so far, the combination of waves and fighting multiple ships causes the frame drop, and occurs in all the mods/derivatives that I've tried so far (Lost Ships City, Caribe Stories, and Eras 2.) I'll make sure to save whenever I encounter the issue and I'll tell you if I can find any combination of settings that gets rid of the frame drop.


UPDATE: When near land, foliage quality drastically affects the framerate. Disabling foliage results in a big FPS boost. I don't know if this is something exclusive to Windows 10, though.

Considering the effects of foliage, it's probably a safe bet to say that the rendering of crewmen running around on ships is the cause of the frame drop when near several other ships. An option to disable them, if one does not already exist, would probably help. I'm not sure why this problem exists on Maelstrom and not the original Storm Engine version of COAS, since Maelstrom is more stable otherwise in my experience thus far. I watched a playthrough of Eras II and the uploader didn't seem to experience any frame drops, though I don't know what OS he was using.

I suspect Windows 10 is the culprit because I've read that there were some changes specifically to DX9 support that can greatly reduce performance.  But, that degradation is due to a specific startup parameter that I am now logging and I will want you to load an ERAS storm save and show/send me the system.log files.

I have just updated Itch with some updates and this new logging.  Here is what I want you to try

1. Load the ERAS storm save with 64 bit version, let me know if this has degraded FPS and give me the system.log

2. Load the ERAS storm save with 32 bit DX9 version, let me know if this has degraded FPS and give me the system.log

3. Load the ERAS storm save with 32 bit DX8 version, let me know if this has degraded FPS and give me the system.log

I am also noting your updates particular to foliage and possibly the sailors.  If you want to try disabling the crew in Caribe Stories to verify, edit a script file in Program\SEA_AI\sea.c and comment out this line with a //:

//CreateEntity(&PeopleOnShip, "PEOPLE_ON_SHIP");    ReloadProgressUpdate();

That should disable all crew on ships.

I don't think it's the actual execution logic of foliage or crew that slows, but likely some particular render state/shader code that greatly hampers within Windows 10.  Even with the faster video cards, faster GPU, whatever they did to DX9 support within Win10 mucked something up but I somehow need to find out specifically what to see if we can circumvent it.  This stuff is old and it is technically not complicated enough to hamper and slow new GPUs, so it is quite strange.

Just an example of one thing I'm looking for:

https://walbourn.github.io/windows-10-anniversary-update-sdk/

"Direct3D 9 Users: Note that with the updated operating system, there will be some performance impact if you are using D3DCREATE_SOFTWARE_VERTEXPROCESSING or D3DCREATE_MIXED_VERTEXPROCESSING"

The game does query the capabilities and automatically detects and uses D3DCREATE_HARDWARE_VERTEXPROCESSING,if at all possible, but I'm curious whether the query comes up with the wrong answer in your case, so that is one of the things I will show in the log is what value the game uses at instantiation.

So far, with Win7 and Win8 and Win10 tests I have done, have not seen this problem, but I have also heard that some of the high-end video cards, with Win10, for some configurations of equipment/OS, all of a sudden go super-slow with this old DX9 stuff.  So not everybody, just some cases and there are various examples within online forums with this same type of problem for some old games.  I will try to figure it out, but I only have two Win10 machines in my household, but both have the stock on-board video cards and neither have this problem in the storms when I recently checked, so it may be difficult for me to figure out the cause.

(1 edit)

Sorry for the wait, but I've got the logs now. Thanks for the help.


I noticed that the x64 version was significantly smoother than the others, though the FPS was still sub-par. The consistent thing I've noticed as someone who isn't very computer-savvy in the logs is a constantly repeating error message of "Can't find cache for sound !!!! RESOURCE\sounds\ship_bow"

Here are the logs and the save file: https://drive.google.com/open?id=1eMUChRkJoPmeoVFyF9IpEaVF6uTQRox4


EDIT: I've just realized that I only updated the executables and not ERAS itself. I'll get the logs for that as well.

FPS with foliage is now fixed...took awhile, but found that particular slowdown cause and worked around it.  Updated today 9/18/2020.