It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Game loading was slow enough before, but now it's getting worse. I use wine to run Painkiller. The game itself runs pretty good.

But everytime I start a new game or load a saved game, the load screen appears where the arc meter (?) turns halfway, then it takes almost 10 minutes or so before the game starts. Obviously this is not funny when I saved just when I started battling a boss, and after loading the game and doing something else during the 10 minutes or so wait, by the time I notice the game started, I'm already beaten by the boss, every time. I'm in no mood waiting 10 minutes staring at the screen just so I can be ready to beat the boss.

I used WINEDEBUG and saw that during that long wait, a lot of CreateFileW() function calls are done in non-existent subdirectories of Data. I think this is where the time is wasted. Maybe the program is checking every single decompressed game files before checking the compressed package?

Any way to solve this problem? How to tell Painkiller not to check those sub-directories?
No posts in this topic were marked as the solution yet. If you can help, add your reply
Never had this problem with the original Painkiller

i did have something similar with the Overdose game.
Post edited October 20, 2016 by Blaze72
avatar
osce: Game loading was slow enough before, but now it's getting worse. I use wine to run Painkiller. The game itself runs pretty good.

But everytime I start a new game or load a saved game, the load screen appears where the arc meter (?) turns halfway, then it takes almost 10 minutes or so before the game starts. Obviously this is not funny when I saved just when I started battling a boss, and after loading the game and doing something else during the 10 minutes or so wait, by the time I notice the game started, I'm already beaten by the boss, every time. I'm in no mood waiting 10 minutes staring at the screen just so I can be ready to beat the boss.

I used WINEDEBUG and saw that during that long wait, a lot of CreateFileW() function calls are done in non-existent subdirectories of Data. I think this is where the time is wasted. Maybe the program is checking every single decompressed game files before checking the compressed package?

Any way to solve this problem? How to tell Painkiller not to check those sub-directories?
This is how the painkiller engine functions sadly, there is little you can do to fix it or change it without a source code release.
avatar
osce: Game loading was slow enough before, but now it's getting worse. I use wine to run Painkiller. The game itself runs pretty good.

But everytime I start a new game or load a saved game, the load screen appears where the arc meter (?) turns halfway, then it takes almost 10 minutes or so before the game starts. Obviously this is not funny when I saved just when I started battling a boss, and after loading the game and doing something else during the 10 minutes or so wait, by the time I notice the game started, I'm already beaten by the boss, every time. I'm in no mood waiting 10 minutes staring at the screen just so I can be ready to beat the boss.

I used WINEDEBUG and saw that during that long wait, a lot of CreateFileW() function calls are done in non-existent subdirectories of Data. I think this is where the time is wasted. Maybe the program is checking every single decompressed game files before checking the compressed package?

Any way to solve this problem? How to tell Painkiller not to check those sub-directories?
Probably not other than perhaps the Wine developers will somehow optimize the CreateFileW implementation or implement it fully because AFAIK it's most likely just a stub at this point.
Thank you for all the reply.

I think the problem is Windows doesn't have a simple stat function to check the existence of a file or directory, since it seems to use open/close on a file to check if it exists, which seems like an idiotic way given that it has to create all the necessary contexts for file I/O each time it tries to open.

I managed to work around by running in god-mode. I could probably locate the code to find related fopen and fclose calls and replace them with nop if I have time.
Create a folder called Maps Into Data folder

This is the cache folder.

Set Windows XP SP2 compatibility mode for .exe file
Post edited January 31, 2017 by FulVal
avatar
FulVal: Create a folder called Maps Into Data folder

This is the cache folder.

Set Windows XP SP2 compatibility mode for .exe file
that didn't do anything for me.


WORKAROUND:

To load the levels much much faster do this, open the painkiller editor, open the level you want to play by going to - file-open level, for some strange reason it will load very fast on editor mode, to go to game mode, click on the red square with the lightning symbol, you spawn instantly in game mode and you can play the level normally but remenber, when in game open the console and enter pkgod and play on god mod, that way you don't die, because if you do it will still take ages to reload the save again.

Warning playing this way will not automatically open the next chapters!