View Issue Details

IDProjectCategoryLast Update
0004101Valley 1Note To TestSep 27, 2011 3:42 pm
Reporterleb0fh Assigned ToChris_McElligottPark  
Status closedResolutionno change required 
Product Version0.501 
Fixed in Version0.502 
Summary0004101: Lag On First-Load Of Larger Rooms
DescriptionWhen I load into a new area/room along the lines of Pyramids and "Maze Rooms" I get a good couple of second lag before it lets me in (I assume it's generating the room?) - is this normal?

incase it's something specific to my setup, I'm running Windows 7 x64, 8GB ram, GF460GTX, SSD drive
TagsNo tags attached.
Internal WeightNew

Activities

Chris_McElligottPark

Sep 27, 2011 3:19 pm

administrator   ~0013959

It's generating the room, yes. I wouldn't expect that much lag, but it's going to be processor dependent. That's definitely not out of the normal range, as maze generation requires a lot of operations.

Toll

Sep 27, 2011 3:21 pm

reporter   ~0013963

I get the same thing on a Vista 64bit, 8GB RAM, GeForce GTX 460, "normal" harddrive.

Chris_McElligottPark

Sep 27, 2011 3:25 pm

administrator   ~0013967

Yes, it's all a computational thing, nothing to do with the hard drive or GPU and not much to do with RAM. It just takes it a bit to generate this big complex room from scratch.

Toll

Sep 27, 2011 3:35 pm

reporter   ~0013968

Purely out of curiosity... When is it decided what the room will look like? At the generation of the world (i.e. a seed is placed in the room and no matter when you go there, the same room will be generated) or when you first enter the room (i.e. it's not randomised from a seed but as the game goes on)?

Chris_McElligottPark

Sep 27, 2011 3:40 pm

administrator   ~0013970

It's a mix of most of the above. The general policy for this game is to "lazy generate" as much as possible. This has the advantage of general speed of creating new worlds and regions and such, and it also has the advantage that when you first enter a new region on a new version of the game, you get the latest version content. Versus you having to wait for regions you haven't been into yet.

In terms of rooms and such in any dungeon, the overall dungeon map of the whole building is generated at once (when you first enter the building), and so there is some basic data in that (what general type of room, etc -- stairways, halls, etc). The actual details of any room aren't filled in until you step into the room for the first time, though.

Otherwise generating a new building would be something like a 30+ second affair, and with frequent updates your existing buildings would not take on the newer improvements. And your world file would get much larger much faster for no real reason. With the lazy generation system, if you stop in the middle of the building, then we do a patch that adds a bunch of new stuff to rooms in buildings of that sort, then you load up and continue exploring that building, the unexplored rooms will have the new content while the previously-explored ones will largely not.

tigersfan

Sep 27, 2011 3:42 pm

reporter   ~0013972

Pretty much every part of the world, be it an outside chunk or an interior layout is created only just before you need it. This means your computer isn't spending time creating rooms and chunks you aren't ever going to go into anyway.

leb0fh

Sep 27, 2011 3:42 pm

reporter   ~0013973

I should have pointed out in the initial report my processor isn't slow (4.4GHz Core i7) - I will assume though that your original response still stands and it's just a result of having such a (potentially) huge game :)

Issue History

Date Modified Username Field Change
Sep 27, 2011 3:16 pm leb0fh New Issue
Sep 27, 2011 3:19 pm Chris_McElligottPark Internal Weight => New
Sep 27, 2011 3:19 pm Chris_McElligottPark Note Added: 0013959
Sep 27, 2011 3:19 pm Chris_McElligottPark Status new => closed
Sep 27, 2011 3:19 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Sep 27, 2011 3:19 pm Chris_McElligottPark Resolution open => no change required
Sep 27, 2011 3:19 pm Chris_McElligottPark Fixed in Version => 0.502
Sep 27, 2011 3:21 pm Toll Note Added: 0013963
Sep 27, 2011 3:25 pm Chris_McElligottPark Note Added: 0013967
Sep 27, 2011 3:35 pm Toll Note Added: 0013968
Sep 27, 2011 3:40 pm Chris_McElligottPark Note Added: 0013970
Sep 27, 2011 3:42 pm tigersfan Note Added: 0013972
Sep 27, 2011 3:42 pm leb0fh Note Added: 0013973