Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Qedo

Pages: 1 ... 21 22 [23] 24
331
Code Snippets / Re: new QSIN (QQSIN)
« on: 2011-Aug-17 »
The Ocean's code use a lookup table and take a value from a matrix.
It's the fastest.
Ciao

332
Code Snippets / Re: new QSIN (QQSIN)
« on: 2011-Aug-17 »
in the Kanonet code eliminated the integer cast  (see code) Now >10% faster (on my computer)

Code: (glbasic) [Select]
`FUNCTION QQSIN1: x // KanonetLOCAL xx%xx=xIF xx >= 360 DEC x, ( xx / 360 ) * 360  // was DEC x, INTEGER( x / 360 ) * 360 ELSEIF  x < 0 INC x, ( 1 - xx / 360 ) * 360 // was INC x, INTEGER( 1 - x / 360 ) * 360ENDIF IF x < 180 x = ( 0.02222144652331750907567718514381 - 0.00012346049003081125437778164739108 * x )* x RETURN ( 0.775 + 0.225 *x ) * x ENDIF x = 180 - x x = ( 0.02222144652331750907567718514381 + 0.00012346049003081125437778164739108 * x ) * x RETURN ( 0.775 - 0.225 * x ) * xENDFUNCTION`
@Ocean
your code is very very fast (40% faster) congratulations.
Ingenious the & bAnd control in: return _cos_tbl_[ (int)(x * __d__) & __c__] ;
the other side of the coin is the increased use of memory of the lookup table.
Ciao

333
Code Snippets / Re: new QSIN (QQSIN)
« on: 2011-Aug-15 »
sorry Ocean, but I don't understand.
The angles outside 0-360 degrees are redused at the first quadrant but not converted in integer.
Can you give a practical example?

334
Code Snippets / Re: new QSIN (QQSIN)
« on: 2011-Aug-15 »
Kanonet
You're right.
Your code is faster on average by 7%
well done
ciao

335
Code Snippets / Re: new QSIN (QQSIN)
« on: 2011-Aug-10 »
@ Quentin
the new QQSIN for high (and low) angle.
Ciao

336
Code Snippets / Re: new QSIN (QQSIN)
« on: 2011-Aug-05 »
FUNCTION QQCOS: x
RETURN QQSIN(x+90)
ENDFUNCTION

Ciao

337
GLBasic - en / easier updates
« on: 2011-Aug-04 »
would not be better that the update files rather than generically called glbasic_sdk.exe, were called glbasic_sdk_10.57.exe  or  glbasic_sdk_10.68.exe for example? In this way with the version number in the filename would become much easier to manage updates.
Ciao

338
Code Snippets / Re: new QSIN (QQSIN)
« on: 2011-Jun-09 »

feel free to use it

339
Code Snippets / Re: new QSIN (QQSIN)
« on: 2011-Jun-09 »

M_QSIN (ampos code) = 380 ms
QQSIN = 230 ms
QSIN   = 580 ms
SIN GLBasic= 1150 ms

340
Code Snippets / new QSIN (QQSIN)
« on: 2011-Jun-09 »
new QSIN (QQSIN).
on my computer (notebook):
QQSIN = 230 ms
QSIN   = 580 ms
SIN GLBasic= 1150 ms

341
Bug Reports / Re: FOR/NEXT loop slightly upset by variable name
« on: 2011-Jun-04 »
I think the problem is TO and no OR.
Try with NOTO% or RETOMA%

342
FAQ / Re: First contact
« on: 2011-May-23 »
SpriteSpeedTester

On my notebooK Centrino 1.8Ghz Nvidia 8400 13-20FPS

343
GLBasic - en / Re: GLBasic, not for games
« on: 2011-Apr-30 »
As I said I would use the database as well as use of tables and charts as excel, see picture ..

a picture speaks a thousand words:

344
GLBasic - en / GLBasic, not for games
« on: 2011-Apr-30 »
Hello everyone,
I want to write a program (especially for smartphone) management training for runners , and then I also manage the data base even if very simple, tables and graphic.
My question is: is GLBasic  a programming language suitable for this purpose?
Thank you

345
GLBasic - en / Capture screen
« on: 2011-Mar-12 »
Hi all,
it's possible capture portion of screen outside the program of glbasic  (capture desktop,explorer,firefox etc)?
I would like write a magnifier program in windows system.
Thank you
Edo

Pages: 1 ... 21 22 [23] 24