Bug in ndSetData.h

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

Bug in ndSetData.h

Postby zak » Wed Jul 07, 2021 12:34 pm

Hi,
compiling last Newton 4 in single thread in Visual Studio 2015 fails because of ndSetData.h, with several error as: impossible to convert from dAtomic<dUnsigned32> to dUnsigned32
In multithreading build error does not occur.
zak
 
Posts: 87
Joined: Mon Dec 06, 2004 9:30 am

Re: Bug in ndSetData.h

Postby Julio Jerez » Wed Jul 07, 2021 2:36 pm

ah, yes I see that.
Fixed. please sync again.

any reason why you build ins single thread?
is you do not set any thread, the engine is still single thread and allows the option of running concurrent.
I find this to be quite effective.
you still can do it building in single thread, but take some work.
and yes I know there are some platform that do not support thread but not windows. :shock:
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Bug in ndSetData.h

Postby zak » Thu Jul 08, 2021 1:42 pm

it's ok now.
Julio Jerez wrote:any reason why you build ins single thread?
I am developing a soccer game and hope to publish it on different platforms in the future, so to be safe, I test the single thread regularly.
zak
 
Posts: 87
Joined: Mon Dec 06, 2004 9:30 am

Re: Bug in ndSetData.h

Postby Julio Jerez » Thu Jul 08, 2021 2:50 pm

Ah, that's awesome.

On the bright side, Newton 4 is now at a minimum cpp 11.
Where the usage of cross platform classes like atomic, threads, timer and so on is all cpp 11.
This apply to the engine side 100%, on the demos, since we use third party libraries, this is not the case, but we try to use cross platform thierd party libraries.

So chances are that since most new platforms today are at a minimum c++11 then it should not be difficult to get it work on those platform with or without thread support.

The only missing part that still has not be completed is the arm simd, but I am planning to address than in a few week from now. Problem next month.

We also have building and running in unbunto .

But it is very good that you test single thread running on the parent thread,
Thank you for that.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 13 guests