-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sometimes the game hangs loading with a black screen #70
Comments
Can anybody else reproduce this issue? When you encounter it again, please check the stack trace in gdb. This is a very basic method that allows you to get an idea of where the offending code/infinite loop might be (example from my working game):
|
This happens for me at every start of the program. It doesn't fix itself. The program stays a long time in the |
This is probably caued by the long loading time of the few thousand files. Loading them the second run or after conversion is faster as Linux will have cached the requested files. It will be fixed, once #28 is finished. We could stuff all files in a tar archive or something to improve the access time i think. |
Does the game process something with the loaded data? If so, you can dump the structures directly to the drive, so you can load them and save some processing. That might be useful. |
hey structure dumping is a nice idea for fast loading! |
We shouldn't put too much emphasis on speeding this up, since the data loading process will work differently once we use nyan. |
The amout of work I need for converting the csvs to a relational database is minimal. The development workflow has to be as optimized as possible, long startup times are not feasible. See #124. |
Anyway, structure dumping of loaded data is always a fast way to avoid recalculating information, with or without nyan (btw I don't know what nyan means). The main disadvantage is that you need to check the structures aren't older than the assets. |
@jprashanth fixed this with PR #137. Now the game window is responsive and displays a "loading" message. |
nice!! |
The log reads this:
It usually happens to me on a cold boot. It fixes by itself, I don't know what's the cause. When it fixes for the first time, it keeps working afterwards.
I'm on Arch Linux x86_64, currently running GNOME3.
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
The text was updated successfully, but these errors were encountered: