From 2892a844d43d4c0e8209ad1efc0b135a957a4b8d Mon Sep 17 00:00:00 2001 From: faketruth Date: Sat, 24 Dec 2011 23:34:30 +0000 Subject: Chunks are generated in a separate thread allowing players to keep on playing and chatting while chunks are generated. This means, however, that cWorld::GetChunk() does not always return a chunk and is something you need to be aware of. I am not entirely sure if all this is completely stable, but I think so :O Chunks are now generated before the player is able to see them. This is done because after a chunks is done generating, some blocks might still need to be set (parts of trees from neighboring chunk), causing more bandwidth to be used (each changed block needs to be sent to clients again) and (fps) lagging the clients when changing a lot of blocks. Calculating ahead fixes these issues. Separated the placing of foliage (trees and stuff) when generated chunks into a new function GenerateFoliage() Cleaned up the VS2010 project, now using some VS2010 specific functions like dependencies on projects (no need for setting library dependencies manually). VS2010 project now compiles way faster in Release by using multi threading. git-svn-id: http://mc-server.googlecode.com/svn/trunk@103 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- VC2010/squirrel_3_0_1_stable.vcxproj | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'VC2010/squirrel_3_0_1_stable.vcxproj') diff --git a/VC2010/squirrel_3_0_1_stable.vcxproj b/VC2010/squirrel_3_0_1_stable.vcxproj index a9c919c03..92b9cc05b 100644 --- a/VC2010/squirrel_3_0_1_stable.vcxproj +++ b/VC2010/squirrel_3_0_1_stable.vcxproj @@ -18,13 +18,11 @@ StaticLibrary true - MultiByte StaticLibrary false true - MultiByte @@ -36,12 +34,18 @@ - + + $(Configuration)\$(ProjectName)\ + + + $(Configuration)\$(ProjectName)\ + - Level3 + TurnOffAllWarnings Disabled ../squirrel_3_0_1_stable/include + true true @@ -49,13 +53,14 @@ - Level3 + TurnOffAllWarnings MaxSpeed true true ../squirrel_3_0_1_stable/include Speed MultiThreaded + true true -- cgit v1.2.3