Th3Ya0vi / vdrift-ogre

Automatically exported from code.google.com/p/vdrift-ogre
0 stars 0 forks source link

Loading screen #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The loading screen only shows when the game is started. When loading a track 
etc., no loading screen is shown. Might also be confusing for new users.

Original issue reported on code.google.com by scrawl...@gmail.com on 22 Mar 2011 at 12:28

GoogleCodeExporter commented 8 years ago

Original comment by scrawl...@gmail.com on 22 Mar 2011 at 12:28

GoogleCodeExporter commented 8 years ago

Original comment by scrawl...@gmail.com on 23 Mar 2011 at 5:11

GoogleCodeExporter commented 8 years ago
I started work on this. Basically what I did, in SceneInit.cpp / App::NewGame() 
I do the loading part in a thread now, so it's possible to render a loading 
screen in the mean time.

However, I'm stuck on a strange segfault that always happens when creating the 
ManualObject for the car body. I have no idea why this is happening, at the 
moment. Maybe some thread synchronisation issue - will have to look into that.

Original comment by scrawl...@gmail.com on 25 Mar 2011 at 10:04

GoogleCodeExporter commented 8 years ago
So far i tried it is not possible to do i like so. You can't create anything 
for Ogre in other threads.
The loading message could be done like in editor (F4,F5,F8 displays info first 
and after Save,Load,Update). It is just one frame skipped and shows overlay and 
after this, the actual procedure is called (and stops rendering until it's 
done).

Original comment by Cry...@gmail.com on 27 Mar 2011 at 7:16

GoogleCodeExporter commented 8 years ago
I will try with another approach.

I will do everything in the same thread, seperate the different loading steps 
(vdrift, terrain, car...) into different methods and call only 1 of them per 
frame. Then I update the loading screen and display the next step.

Original comment by scrawl...@gmail.com on 27 Mar 2011 at 10:40

GoogleCodeExporter commented 8 years ago
Fixed in latest revision.

Original comment by scrawl...@gmail.com on 27 Mar 2011 at 2:15