696 Commits

Author SHA1 Message Date
Perttu Ahola
41cad62f6c server: Fix threading 2014-10-29 13:11:59 +02:00
Perttu Ahola
237ab86376 impl/linux/file_watch: Reduce log level of common messages 2014-10-29 13:09:02 +02:00
Perttu Ahola
13b72276c8 games: Fix everything 2014-10-28 17:17:25 +02:00
Perttu Ahola
7bfdb549ed server/state: Fix handling of info.meta.disable_cpp 2014-10-28 17:16:53 +02:00
Perttu Ahola
4048a51a6a games/minigame: Crappy recovery from reload 2014-10-28 15:43:59 +02:00
Perttu Ahola
e630a27fec server/state: Fix file watching and module reload 2014-10-28 15:34:50 +02:00
Perttu Ahola
17faa14416 core/types.h: T* check(T *v) 2014-10-28 14:50:09 +02:00
Perttu Ahola
533c96e17d builtin: Switch to correct get_x() nullptr convention 2014-10-28 14:49:42 +02:00
Perttu Ahola
54e1ec778a Revert "doc/conventions.txt: Switch get_x behavior to be like check_x; TODO: Implement this behavior"
This reverts commit 702528b542a18d9e916ceab89e223190e2814c2b.

Conflicts:
	doc/todo.txt
2014-10-28 14:37:07 +02:00
Perttu Ahola
8172d15abc builtin/ground_plane_lighting: Add missing event routing to instances 2014-10-28 14:04:15 +02:00
Perttu Ahola
a32e09b9a7 games/digger/worldgen -> builtin/worldgen 2014-10-28 13:58:57 +02:00
Perttu Ahola
a8c83391d8 games/digger: Update to new scene handling 2014-10-28 13:56:30 +02:00
Perttu Ahola
65aa149d68 builtin/ground_plane_lighting: Update to new scene handling 2014-10-28 13:56:30 +02:00
Perttu Ahola
4bfcd1057e builtin/voxelworld: Update to new scene handling 2014-10-28 13:56:30 +02:00
Perttu Ahola
3f6bcb6228 builtin/main_context, builtin/replicate: New multi-scene handling 2014-10-28 13:56:30 +02:00
Perttu Ahola
702528b542 doc/conventions.txt: Switch get_x behavior to be like check_x; TODO: Implement this behavior 2014-10-28 09:49:12 +02:00
Perttu Ahola
91cb06eb8d doc/conventions.txt: find_x: Returns nullptr or equivalent if not found 2014-10-28 09:46:13 +02:00
Perttu Ahola
ee48a47094 core/log: Rename LOG_* to CORE_* so that they don't get mixed up by Urho3D's LOG_* constants 2014-10-28 09:31:15 +02:00
Perttu Ahola
24636e9dd7 games/digger: Show worldgen queue size on client 2014-10-28 01:53:21 +02:00
Perttu Ahola
8d4fc82919 games/digger/worldgen: Queue generation requests so that generation progress can be measured 2014-10-28 01:52:49 +02:00
Perttu Ahola
1ca6915fe0 extensions/urho3d: UIElement.width 2014-10-28 01:49:56 +02:00
Perttu Ahola
c2877aaca2 interface/os: sleep_us() 2014-10-28 01:49:39 +02:00
Perttu Ahola
470d77cb68 interface/server: emit_event(type) 2014-10-28 00:54:15 +02:00
Perttu Ahola
bba9dffb49 README.md: "Make sure to use a pthreads version of Mingw-w64. Windows threads are not supported ATM." 2014-10-28 00:47:39 +02:00
Perttu Ahola
261864ff42 builtin/voxelworld, games/digger: Way more robust startup sequence 2014-10-28 00:20:52 +02:00
Perttu Ahola
c0d87faab0 server/state: Improve access dependency check 2014-10-27 23:44:10 +02:00
Perttu Ahola
bf8d2b8dec interface/debug: Record exception backtraces and allow logging them using log_exception_backtrace() 2014-10-27 23:26:37 +02:00
Perttu Ahola
25d9e994a3 interface/debug: Backtrace logging on Linux 2014-10-27 23:25:48 +02:00
Perttu Ahola
3501693188 server/state: Check that modules are accessed according to dependencies to avoid deadlocks 2014-10-27 18:27:59 +02:00
Perttu Ahola
35700e7082 server/state: Use thread-local storage to find out caller module in access_module() 2014-10-27 18:24:42 +02:00
Perttu Ahola
053a92bb68 interface/thread: ThreadLocalKey: Thread-local storage 2014-10-27 18:24:42 +02:00
Perttu Ahola
f2919b06bb Switch to using #define MODULE in modules, and rename Module::MODULE to Module::m_module_name 2014-10-27 16:01:23 +02:00
Perttu Ahola
b23830f79f builtin/main_context: Create Urho3D stuff in init() 2014-10-27 14:43:37 +02:00
Perttu Ahola
c19afaaca6 server/state: Call module->init() in module thread 2014-10-27 14:43:37 +02:00
Perttu Ahola
490b25ae48 impl/thread: Use std::atomic_bool 2014-10-27 14:43:37 +02:00
Perttu Ahola
b23a2348ad core/log: Use std::atomic 2014-10-27 14:43:37 +02:00
Perttu Ahola
dd2bce22e5 Revert "README.md: -DURHO3D_ENFORCE_SINGLE_THREAD=false"
This reverts commit 77406b2609a43cbf1d69ea013ac8a0e878984ecf.

This isn't needed due to changes in interface::Server::access_module().
2014-10-27 14:43:37 +02:00
Perttu Ahola
209301b772 server/state: Run access_module()'s callback in target module's thread 2014-10-27 14:43:37 +02:00
Perttu Ahola
e17a761e84 builtin/ground_plane_lighting: Fix disallowed locking order 2014-10-27 14:43:37 +02:00
Perttu Ahola
6a4d225092 interface/thread,thread_pool: Allow setting thread name 2014-10-27 14:43:37 +02:00
Perttu Ahola
77406b2609 README.md: -DURHO3D_ENFORCE_SINGLE_THREAD=false 2014-10-27 11:26:52 +02:00
Perttu Ahola
76e3222e35 games/digger: Move world generation and voxel definitions to the worldgen module so that it can slowly generate the world while the main module is always responsive towards clients 2014-10-27 01:18:55 +02:00
Perttu Ahola
b50656f505 Break coding style 2014-10-27 01:08:16 +02:00
Perttu Ahola
8c864c6ac9 lua_bindings/mesh: Trigger Urho3D Octree update by using cg->SetZoneMask(magic::DEFAULT_ZONEMASK) 2014-10-27 01:01:47 +02:00
Perttu Ahola
4937a83ac5 server: Run modules in separate threads 2014-10-27 01:01:47 +02:00
Perttu Ahola
89add42185 builtin/voxelworld: Send voxel registry to clients when modified 2014-10-27 01:01:06 +02:00
Perttu Ahola
2404a15af4 interface/voxel: VoxelRegistry dirty flag 2014-10-27 01:01:06 +02:00
Perttu Ahola
ef6bb545dd builtin/voxelworld: Modify client-side initialization to not require call to init() 2014-10-27 01:01:06 +02:00
Perttu Ahola
1291d08c32 client/sandbox.lua: Whitelist error() 2014-10-27 01:01:06 +02:00
Perttu Ahola
e99f96b334 doc/whynot: Something about module instances 2014-10-26 13:03:14 +02:00