0 Members and 1 Guest are viewing this topic.
ar81 wrote:Is Orbiter going to move to .NET?
- The Microsoft code has to perform more bounds checking. The Orbiter code is written to assume the bounds have already been checked in another bit of code. - The Microsoft code calculates the value from a number of inputs. The Orbiter code has pre-calculated the value in another bit of code. - The Microsoft code includes data caching or logging functionality. The Orbiter code does not. - The Microsoft code is threadsafe for a multi-threaded environment and therefore includes locking mechanisms. The Orbiter code is single-threaded. - The Microsoft code was compiled with different compiler options that provide safety checks for API calls. The Orbiter code is either not accessible through an API, or it is accessible and makes no checks, or it has a wrapper function elsewhere to handle this. I have no idea whether any of these are true or whether they are all true, but simply counting the number of instructions and saying that the longer code is the reason why a piece of software needs more powerful hardware to run it is pretty meaningless. It needs more powerful hardware because it does more. The length of the code is just the intermediary between the cause and the effect.
ar81 a écrit:What can I reply to him?
Doug Beachy wrote:Actually Orbiter is a single-threaded application -- the state of each ship, module, and MFD in the simulation is updated sequentially in a single thread. This is also why the higher the framerate the more accurate the simulation is. So in a nutshell, you do not have to worry about writing thread-safe functions when writing Orbiter code.
Doug Beachy wrote:So in a nutshell, you do not have to worry about writing thread-safe functions when writing Orbiter code.
ar81 wrote:I tried to make a simple program in VB.NET to test what I would need to remake my tools in .NETIt seems to be slower.Also some capabilities from VB5 were removed. It is longer and harder to code in VB.NETAnd all of the code syntax was changed.I stay with VB5.