realbasic-games
[Top] [All Lists]

Re: Preemptive Tasks (Was: New OpenGL plugin)

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Preemptive Tasks (Was: New OpenGL plugin)
From: Marco Bambini <marco at sqlabs dot net>
Date: Wed, 7 Dec 2005 23:56:00 +0100
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <4394D750 dot 2000708 at optonline dot net> <1a84c124f37b372513a79b0486bd4c45 at fireyesoftware dot com> <9B8B272C-319F-4878-BDE1-619CA7E445FF at sqlabs dot net> <da4bc6084296 dot 4396dd70 at optonline dot net> <F7999A04-A46B-499B-84B5-434B916EAF13 at sqlabs dot net> <e359b3c64461 dot 4396e26b at optonline dot net> <7C491DC4-4B02-49C5-9EAD-8DCB0B349C31 at sqlabs dot net> <dfbff15e3077 dot 4396ebbe at optonline dot net> <5B2B76D2-FEA6-47B0-8362-449C2A0CC528 at sqlabs dot net> <e77e911f5def dot 4396ee15 at optonline dot net> <5E7CD59C-AE86-4CDF-BD65-DD39521BB57E at sqlabs dot net> <e012941d470a dot 4396ef88 at optonline dot net> <398F9359-65F0-4343-A083-BF6C22DBD4A4 at freaksw dot com> <e37deef2309 dot 4396f181 at optonline dot net> <7CC2024B-C27D-4869-8E89-6B3C3BE678E7 at sqlabs dot net> <e3aba4dd3b44 dot 4396f96a at optonline dot net> <18EDE733-7ABE-44B3-AE67-D79B4FDD957D at freaksw dot com> <F62B8095-D70D-4319-A564-0C1838521842 at sqlabs dot net> <EE0BD5F5-854D-455B-84E7-E9E9254FAB0A at chaoticbox dot com> <F71C8032-9E77-43B3-A1F3-D3A3031E2905 at sqlabs dot net> <F23DC5DD-A914-4806-82C1-362D5A4EAAE5 at chaoticbox dot com>
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>

<Prev in Thread] Current Thread [Next in Thread>