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/WebServer.vcxproj | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'VC2010/WebServer.vcxproj') diff --git a/VC2010/WebServer.vcxproj b/VC2010/WebServer.vcxproj index 934c3803d..03c84d620 100644 --- a/VC2010/WebServer.vcxproj +++ b/VC2010/WebServer.vcxproj @@ -26,7 +26,6 @@ StaticLibrary true - MultiByte StaticLibrary @@ -37,7 +36,6 @@ StaticLibrary false true - MultiByte StaticLibrary @@ -61,11 +59,15 @@ - + + $(Configuration)\$(ProjectName)\ + $(SolutionDir) - + + $(Configuration)\$(ProjectName)\ + $(SolutionDir) @@ -73,6 +75,7 @@ Level3 Disabled + true true @@ -99,6 +102,7 @@ true MultiThreaded Speed + true true -- cgit v1.2.3