realbasic-games
[Top] [All Lists]

Re: Game engine test 2 (now optimized)

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Game engine test 2 (now optimized)
From: Frank Condello <developer at chaoticbox dot com>
Date: Tue, 4 Apr 2006 02:57:43 -0400
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <C0570AEB dot 75D9%mauitom at maui dot net> <9736CA3F-67FC-46FB-9372-DC8D8D434441 at miensoftware dot com> <8FBBF71B-A8FC-4D0B-8ED9-EB66EB1AE63B at divergentmedia dot com> <1320868E-B6AA-43AF-ACBE-CCE76BF201C4 at miensoftware dot com> <38C30259-E1A0-4344-A786-081D5C69B8F0 at chaoticbox dot com> <5779B808-C630-49C5-B6C7-8E5ECCD6F7EC at miensoftware dot com>
You can still use vDSP on the Mac but most of the nice combo functions require 10.4, so you'll have to use soft declares to determine if vintb is available, and use older APIs if it's not.

So you've already got this on 10.4:

  vDSP.vintb(Points1, 0, Points2, 0, percent, points)

Which on previous Mac OSes can be done like so:

  vDSP.vsub(Points2, 0, Points1, 0, points)
  vDSP.vsmul(points, 0, percent, 0, points)
  vDSP.vadd(Points1, 0, points, 0, points)

I don't have Mike's declares so I'm just guessing at the syntax - I'm guessing a stride of "0" means "every element".

There may be some equivalent APIs for Win32 but I'm really not sure - your best bet is to use that mythical plugin we sometimes talk about on this list.

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

On 4-Apr-06, at 1:35 AM, Lo Saeteurn wrote:

That's sort of what I thought--thanks for the research Frank. Are there ways to do these math for systems that doesn't support DSP (prior to 10.4 and on Windows) without using RB's slow memoryblocks?

On Apr 3, 2006, at 10:23 PM, Frank Condello wrote:

vDSP_vintb requires 10.4 or later: <http://developer.apple.com/ documentation/Performance/Conceptual/vDSP/vDSP_Library.pdf>

On 4-Apr-06, at 12:19 AM, Lo Saeteurn wrote:

I copied and paste only the DSP part of the code. Why does it work on everyone's system except his?

On Apr 3, 2006, at 8:58 PM, Mike Woodworth wrote:

lo, how did you re-add your old code... there was a problem with the way you branched on the existance of normals. if you kept the new logic I had, then i have no idea why... if i remember you were not testing the all possible normal memoryblocks for nil.


_______________________________________________
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>