| To: | REALbasic Games <realbasic-games at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: Game engine test |
| From: | Mike Woodworth <mike at divergentmedia dot com> |
| Date: | Sat, 25 Mar 2006 16:11:51 -0500 |
| Delivered-to: | realbasic-games at lists dot realsoftware dot com |
| References: | <20060317180027 dot 96F56117533D at lists dot realsoftware dot com> <4424B89C dot 2010408 at optusnet dot com dot au> <8268A93C-A492-41B9-A867-091978805AC2 at miensoftware dot com> <12B1852E-DE58-4871-A997-E7D44E40CBF4 at mindspring dot com> <BF4347D4-DEA4-4533-87BE-BEB12B106D91 at miensoftware dot com> <5FA27ACF-802D-4210-80DA-7E31FF0AAF60 at chaoticbox dot com> <F8DC5A9A-4050-4894-B0DF-9F62E48EA45E at miensoftware dot com> <8AB344CF-F35A-4A6D-B0FD-2E607E71D2F2 at chaoticbox dot com> <44D60B02-54A3-443F-9928-9C7D2287B8E1 at miensoftware dot com> |
On Mar 25, 2006, at 3:49 PM, Lo Saeteurn wrote: huge! the problem is, .byte has the overhead of a function plus the cost of rb's constant bounds checking, endian checks/conversions, etc. doing this in veclib pushes all this, plus the loop costs into highly optimized code.If you're running through byte-by-byte (or vector by vector) the function call overhead really adds up, and until RB can manipulate memory directly it has no chance of beating or even approaching the speed of C code in this area.Is memoryblock.byte(offset) not equivalent to characters of myarray [offset] in C? Why the difference in speed? mike -- Mike Woodworth mike at divergentmedia dot 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> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Game engine test, Mike Woodworth |
|---|---|
| Next by Date: | Re: Game engine test, Asher Dunn |
| Previous by Thread: | Re: Game engine test, Lo Saeteurn |
| Next by Thread: | Re: Game engine test, Asher Dunn |
| Indexes: | [Date] [Thread] [Top] [All Lists] |