Start of game resource loading problem

Bug #1094527 reported by Julio
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stratagus
Fix Released
Undecided
cybermind

Bug Description

I've noticed that resource loading at the beginning of a game takes 2-3x longer recently.

Actual problem lies somewhere between 8536 and 8542

8535 resources load rather quickly on my machine
8542 resources load 2-3x slower than 8535 (almost as if stuck in a loop)

Related branches

Revision history for this message
Joris Dauphin (joris-dauphin) wrote :

Release or Debug build ?

from history and your range, I would say it happens in rev 8538.
I added some DebugPrint to log Loading of Lua file. (DEBUG)
I also rewrite the getContentFile function... (RELEASE+DEBUG)

Revision history for this message
Joris Dauphin (joris-dauphin) wrote :

Julio wrote:

> I'm not sure what you mean by "Release or Debug", could you explain?
> I normally use:
> bzr branch lp:stratagus
> to get the source I build.

My question is how do you build it ?
Debug has symbol to debug and is not optimized.
you may see in stdout.txt the compile option (such as DEBUG ZLIB VORBIS THEORA WIN32).

> I'm not really familiar with the way launchpad works, is there an easier way for me to grab the current development src tree?

for the first time:
bzr branch lp:stratagus

then
bzr update

> Or even a way to get a combined patch of (for example) from 8542 to 8545?

to get your unified diff example:
bzr diff -r8542..8545

For more detail about bzr commands usage:
bzr help
bzr help branch
bzr help diff
bzr help update

Revision history for this message
Julio (artofwar) wrote :

Release Build: Compile options ZLIB BZ2LIB VORBIS THEORA MIKMOD MNG OPENGL MAC

BTW, Thanks for the help with bzr, that will be very helpful from now on.

Revision history for this message
Julio (artofwar) wrote :

Any ideas on this one? As of rev.8677 it's still happening.

In case I wasn't clear.above.. when you start a game, at the bottom of the screen it rapidly scrolls through text while loading resources. On an old rev.8536 binary this process takes just a few seconds. Somewhere between rev.8536 and rev.8542 something changed that made this process take 2-3x longer. Text scrolls too fast to see what's actually being loaded, so I'm not sure if it's just loading more things now, if it's loading things multiple times, or what.

Thanks for checking into it.

Revision history for this message
Joris Dauphin (joris-dauphin) wrote :

I also noticed that recently, Icon is loaded twice: a normal version and a grey version which slow down too.

Revision history for this message
cybermind (iddqd-mail) wrote :

Fixed in rev.8883

Changed in stratagus:
status: New → Fix Committed
assignee: nobody → cybermind (iddqd-mail)
cybermind (iddqd-mail)
Changed in stratagus:
status: Fix Committed → Fix Released
milestone: none → 2.3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.