08-07-2015, 12:59 AM
I believe block entities getting misplaced is just a visual glitch in the client.
Random Chitchat 2012-2016
|
08-07-2015, 12:59 AM
I believe block entities getting misplaced is just a visual glitch in the client.
08-07-2015, 02:58 AM
No, it's the server saying it.
08-10-2015, 08:30 AM
(This post was last modified: 08-10-2015, 08:34 AM by SamJBarney.)
Do we have a a builtin way in Cuberite to allow shared read access and mutually exclusive write access to a member variable?
08-10-2015, 03:38 PM
No, we've been using mutexes (cCriticalSection) for those, for the simplicity.
08-11-2015, 02:04 AM
So, if I borrow some code from the project, such as the FastNBT code, do I need to add anything to the top of the files to say where they came from?
08-11-2015, 03:45 AM
I don't think you need to, although a mention somewhere, anywhere, would be nice
08-11-2015, 04:55 AM
(08-11-2015, 02:04 AM)SamJBarney Wrote: So, if I borrow some code from the project, such as the FastNBT code, do I need to add anything to the top of the files to say where they came from? What do you want to do? I've tried to use stuff in the past, and a lot of the tight coupling caused problems. FastNBT depends on: Endianness.h, the ASSERT and UNUSED_VAR macros, size_t imports in Globals.h, the AString typedef, vector and string.h imports by Globals.h, the fixed size type typedefs. All of which need to be changed or replicated before using the code elsewhere. But if you succeed in decoupling the code you want, can you push the changes upstream?
08-11-2015, 05:10 AM
(This post was last modified: 08-11-2015, 05:13 AM by SamJBarney.)
I actually found an alternative to what I was working on. I'm having some fun with the D programming language by building an external chunk generator, with a plugin architecture. But I found a dub package that handles nbt.
Mostly I'm using it to figure out a better way to structure cuberite's generation code. But I will need to pull out the FastNBT code into a library for testing for some other code I am writing. Working on classes to allow entities, items, etc. to store and retrieve arbitrary NBT data. Has anyone on here had some experience with D? It seems pretty powerful, and acts a lot like C++.
08-11-2015, 05:29 AM
The main problem with D in my opinion is the lack of predictable time/space costs due to the GC. I personally think that rust shows more promise, but if you can get Cuberite to cooperate with an external runtime, I might restart my experiments with openCL. Also, one of the things I did learn last time is that batching is essential for out of process generation. 100ms PCI-E transfer times had a huge impact on generation speed.
08-11-2015, 06:17 AM
Binding from C++ to D or D to C++ isn't that hard from the looks of it. However, C++ must manage anything that has been allocated from the c++ side, and D must manage anything that has been allocated from the D side.
But the project I am working on is a separate program altogether. So batches would be sent over the network, or the world would be pre-generated and saved to to files that are compatible. |
« Next Oldest | Next Newest »
|