680 Commits

Author SHA1 Message Date
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
Perttu Ahola
3213a7f27d server: Move stuff to magic_event_handler.{h,cpp} 2014-10-26 12:52:29 +02:00
Perttu Ahola
ab1b49cf6b server: Move stuff to rccpp_util.{h,cpp} 2014-10-26 12:48:08 +02:00
Perttu Ahola
eaaa55b1c7 Remove "#pragma GCC diagnostic" lines which became unnecessary when using include_directories(SYSTEM ...) 2014-10-25 12:22:49 +03:00
Perttu Ahola
4031efc230 interface/event: Use shared pointer so that events can be copied 2014-10-24 13:15:04 +03:00
Perttu Ahola
35d76b2de6 doc/todo 2014-10-24 10:53:24 +03:00
Perttu Ahola
5eab367a33 builtin/voxelworld: Keep track of total number of dirty buffers for fancier logging 2014-10-24 10:41:04 +03:00
Perttu Ahola
92ced8924e builtin/voxelworld/client: Listen to correct packet type (voxel updates weren't showing up due to this) 2014-10-24 10:40:32 +03:00
Perttu Ahola
b60cad6889 server/state: Avoid access to freed memory when reloading a module 2014-10-24 10:39:32 +03:00
Perttu Ahola
a585388836 ground_plane_lighting, voxelworld, server: Tweak logging 2014-10-23 23:52:40 +03:00
Perttu Ahola
bf71c97d69 builtin/voxelworld: Name static nodes by chunk_p, not section_p+local_chunk_p 2014-10-23 23:08:36 +03:00
Perttu Ahola
697e038c55 server: Redirect Urho3D's log messages to Buildat's log system 2014-10-23 23:04:45 +03:00
Perttu Ahola
0ca6cdd133 builtin/*: Lower the log level of relatively useless construct/destruct/init messages 2014-10-23 23:04:09 +03:00
Perttu Ahola
589c1d16ad server/state: Don't cause so many useless warnings by trying to hash inexisting include files 2014-10-23 21:59:34 +03:00
Perttu Ahola
6384ff4d84 builtin/voxelworld: Use voxelworld:node_volume_updated instead of CommitHook for post-commit processing and continuously limit amount of loaded buffers 2014-10-23 19:30:33 +03:00
Perttu Ahola
9fc9f846e2 games/digger: Use force-based player movement 2014-10-23 13:59:28 +03:00
Perttu Ahola
92458464b8 doc/{design,todo} 2014-10-23 11:44:12 +03:00