3 registered members (Ayumi, Akow, AndrewAMD),
1,505
guests, and 9
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: C# wrapper 2.2.1 - RELEASE
[Re: Stromausfall]
#365439
03/26/11 18:45
03/26/11 18:45
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
Serious User
|
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
I have a question regarding to the scheduler and time_step: In Lite-C we have to multiply things like the camera speed with time_step so that the speed is framerate unrelated. But I converted my camera code to c# and now it moves slow as hell. --> is SchedulerMethod.wait(1); some kind of slower than wait(1) in Lite-C?
private IEnumerable<ScheduleMethod> myMainMethod()
{
//...
while (true)
{
CameraFunc();
//HeavyFunc();
yield return ScheduleMethod.wait(1);
}
}
void ShowEditorCam()
{
EngVar.Camera.x += 5 * time_step;
}
Another thing I notice, if a function that does heavy calculations is also called every frame the camera moves faster --> time_step got bigger. Could it be that SchedulerMethod.wait(1) doesn't wait only 1 frame but more?
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: C# wrapper 2.2.1 - RELEASE
[Re: pararealist]
#365444
03/26/11 19:08
03/26/11 19:08
|
Joined: Dec 2002
Posts: 616 Austria
Stromausfall
OP
User
|
OP
User
Joined: Dec 2002
Posts: 616
Austria
|
@DJBMASTER, nope didn't have a look yet, but I'll look into that, the function name at least sounds promising ^^ edit: I had a quick look at the function, and it seams that this function uses thread ids, but not managed thread ids ! That's a potential problem afaik, because the native thread of a managed thread may change during runtime afaik! second edit: the two methods Thread.EndThreadAffinity() and Thread.BeginThreadAffinity() prevent this... hmmm now only the function would need to work (let's hope it does ^^) third edit ^^: didn't manage to get it to work @Dark_samurai hmmm nope wait(1), should only wait one frame ! did you set fps_max ?
Last edited by Stromausfall; 03/26/11 21:05.
|
|
|
Re: C# wrapper 2.2.2 - RELEASE
[Re: Stromausfall]
#365710
03/28/11 18:39
03/28/11 18:39
|
Joined: Dec 2002
Posts: 616 Austria
Stromausfall
OP
User
|
OP
User
Joined: Dec 2002
Posts: 616
Austria
|
a new version was uploaded (for Acknex 7.85.4 AND Acknex 8.10) the update of the wrapper includes: - MATERIAL, too large internal type(double instead of float) for matrix11 to matrix44 variables - skin1..4 didn't work - fixed - MATRIX, too large internal type(double instead of float) for element00 to element33 - fixed - EngVar.on_message, can now be not only changed (set) but also retrieved (get) - ent_getvertex - null couldn't be passed as Contact argument - fixed - the Scheduler.EngineClosed variable was intialized with false even though the scheduler wasn't started (the scheduler sets it automatically to false and after it exits, to true !) -> fixed, EngineClosed is now initialized with true - int to double : Text.pos_x, Text.pos_y, Text.offset_y, Text.size_y, Text.size_x here's the link: AcknexWrapper_8_10__2_2_2.zip
|
|
|
Re: C# wrapper 2.2.2 - RELEASE
[Re: monotonic]
#365802
03/29/11 13:32
03/29/11 13:32
|
Joined: Dec 2002
Posts: 616 Austria
Stromausfall
OP
User
|
OP
User
Joined: Dec 2002
Posts: 616
Austria
|
thanks, i received your project, it worked for me without a problem... This is indeed strange ! Does a lite-c program already display Commercial version ? Other than that I can't really think of why this doesn't work on your computer... edit : do you have administrator rights on the windows user account you use ?
Last edited by Stromausfall; 03/29/11 13:36.
|
|
|
|