Search found 77 matches
- Tue Dec 09, 2014 10:51 pm
- Forum: Pioneer development
- Topic: Software floats instead of fixed point?
- Replies: 8
- Views: 7957
Re: Software floats instead of fixed point?
What if instead of fixed point values we used plain ints for most of the stuff? "Fixed point" and "plain ints with carefully selected units" are the same thing. I can't help but notice that our fixedf<int> template is quite a bit more involved than just a plain int64_t. Yes, I'm...
- Tue Dec 02, 2014 1:15 pm
- Forum: Pioneer development
- Topic: Software floats instead of fixed point?
- Replies: 8
- Views: 7957
Re: Software floats instead of fixed point?
What if instead of fixed point values we used plain ints for most of the stuff? "Fixed point" and "plain ints with carefully selected units" are the same thing. For example, a 32-bit 24.8 fixed-point value in light years is the same as a 32-bit integer value stored in units of (...
- Fri Nov 21, 2014 11:23 pm
- Forum: Pioneer development
- Topic: Thanks to the developers! (& suggestion for savegames)
- Replies: 71
- Views: 47195
Re: Thanks to the developers! (& suggestion for savegames)
Really awesome to see you're still working on this! +1! This is a really useful (and difficult!) thing to work on. We need a savegame format that is a tree, the ability to navigate nodes, return the number of child nodes, iterate through the nodes etc. There are two obvious choices: XML and JSON. I...
- Tue Oct 21, 2014 4:38 pm
- Forum: Pioneer development
- Topic: Software floats instead of fixed point?
- Replies: 8
- Views: 7957
Re: Software floats instead of fixed point?
This is a wheel that we (JohnJ, actually) already reinvented ages ago, the last time this idea was brought up. There should be a branch with the code in it somewhere. There are other software floating point libs we could use, but I haven't investigated them.
John B
John B
- Sun Oct 12, 2014 8:51 pm
- Forum: Pioneer development
- Topic: Taking a leave of absence
- Replies: 8
- Views: 7304
Re: Taking a leave of absence
Thanks for the kind words, everyone!
- Tue Oct 07, 2014 9:53 pm
- Forum: Pioneer development
- Topic: Taking a leave of absence
- Replies: 8
- Views: 7304
Taking a leave of absence
This week I started my new job in London. I have a ton of stuff to learn, and it's going to take me a while to get used to the commute (I haven't lived or worked in London before) and the work and my new life. As a result of this I'm not expecting to have any time for Pioneer for the next few months...
- Sat Sep 27, 2014 5:04 pm
- Forum: Pioneer development
- Topic: Migrating RefCountedPtr to std::shared_ptr?
- Replies: 7
- Views: 7563
Re: Migrating RefCountedPtr to std::shared_ptr?
Other than that, I do prefer intrusive ref-counting, as it avoids some pitfalls. Are you thinking about anything else than the possibility to safely create new smart pointers from bare pointers? This is possible for std::shared_ptr through std::enable_shared_from_this, which essentially puts a weak...
- Fri Sep 26, 2014 8:42 pm
- Forum: Pioneer development
- Topic: Migrating RefCountedPtr to std::shared_ptr?
- Replies: 7
- Views: 7563
Re: Migrating RefCountedPtr to std::shared_ptr?
TLDR: Sure, go for it. Weak pointer support is probably a good enough reason. As we increase the amount of multi-threaded code shared_ptr's thread safety may also be useful. Other than that, I do prefer intrusive ref-counting, as it avoids some pitfalls. Regarding refcounting in general: It's very e...
- Tue Sep 23, 2014 11:17 am
- Forum: Pioneer development
- Topic: Thanks to the developers! (& suggestion for savegames)
- Replies: 71
- Views: 47195
Re: Thanks to the developers! (& suggestion for savegames)
I've had a brief look at json - a bit like XML, but more readable. To my understanding, json files are text, which means people could cheat far too easily :) Maybe a text file could be encrypted/decrypted on save/load? It's trivial to cheat anyway -- anyone can open up the in-game script console an...
- Wed Sep 03, 2014 11:14 am
- Forum: Pioneer development
- Topic: Some thougts from newb
- Replies: 7
- Views: 5423
Re: Some thougts from newb
Well the flight model is Newtonian but that just means that we don't have an atmospheric flight model, so no lift, drag or other factors taken into account when travelling within an atmosphere. That's not entirely true. We do have atmospheric drag, it's just very simple uniform drag, not affected b...