Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Preemptive Tasks (Was: New OpenGL plugin) (Real Studio games Mailinglist archive)

Back to the thread list
Previous thread: "OFF LIST" RE: Games in RB
Next thread: Need help converting this VB module to RB


Is Asher still working on those OpenGL modules?   -   Daniel Lurie
  Preemptive Tasks (Was: New OpenGL plugin)   -   Frank Condello
    Re: Preemptive Tasks (Was: New OpenGL plugin)   -   Marco Bambini

Preemptive Tasks (Was: New OpenGL plugin)
Date: 07.12.05 23:28 (Wed, 7 Dec 2005 17:28:36 -0500)
From: Frank Condello
On 7-Dec-05, at 4:51 PM, Marco Bambini wrote:

> On Dec 7, 2005, at 10:22 PM, Frank Condello wrote:
>
>>> My OpenGLView control can have its own async loop attached, so it
>>> is complete independent from RB.
>>
>> That could be useful... Can you provide more details on how this
>> works?
>
> Every control has a "period" property (integer, milliseconds) and a
> DrawScene event (nFrame As Integer, Interval As Double)
>
> If you select the myOpenGLView.StartAsync method, then the
> DrawScene event is called every "period" milliseconds and this
> "custom loop" is complete independent from RB (the nFrame parameter
> is automatically incremented at every call).

Sounds good - does this use preemptive threads under the hood or is
there another way to get this same effect?

I'm interested because this is very similar to an interface I had
planned out for a generic "PreemptiveTask" class, but I haven't had
time to research it further. I wonder if you'd be willing to release
a standalone/generic version of this?

> P.S. I have just seen your http://developer.chaoticbox.com/ and you
> are really doing a great work.

Thanks - so much crap, yet so little to show for it!

Frank.
–––––––––––––––––––––––––––––––––
Open Source RB Goodies and Shareware
<http://developer.chaoticbox.com/>
<http://www.chaoticbox.com/>
–––––––––––––––––––––––––––––––––

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Preemptive Tasks (Was: New OpenGL plugin)
Date: 07.12.05 23:56 (Wed, 7 Dec 2005 23:56:00 +0100)
From: Marco Bambini
On Dec 7, 2005, at 11:28 PM, Frank Condello wrote:

> On 7-Dec-05, at 4:51 PM, Marco Bambini wrote:
>
>> On Dec 7, 2005, at 10:22 PM, Frank Condello wrote:
>>
>>>> My OpenGLView control can have its own async loop attached, so
>>>> it is complete independent from RB.
>>>
>>> That could be useful... Can you provide more details on how this
>>> works?
>>
>> Every control has a "period" property (integer, milliseconds) and
>> a DrawScene event (nFrame As Integer, Interval As Double)
>>
>> If you select the myOpenGLView.StartAsync method, then the
>> DrawScene event is called every "period" milliseconds and this
>> "custom loop" is complete independent from RB (the nFrame
>> parameter is automatically incremented at every call).
>
> Sounds good - does this use preemptive threads under the hood or is
> there another way to get this same effect?

I am using preemptive threads under the hood

> I'm interested because this is very similar to an interface I had
> planned out for a generic "PreemptiveTask" class, but I haven't had
> time to research it further. I wonder if you'd be willing to
> release a standalone/generic version of this?

Well, I am note sure about this point, but certainly something to
investigate...

---
Marco Bambini
http://www.sqlabs.net
http://www.sqlabs.net/blog/

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>