Search found 635 matches

by UEZ
Jan 05, 2018 21:39
Forum: Tips and Tricks
Topic: Infinite Image Zoom Flight [Windows only]
Replies: 23
Views: 1819

Infinite Image Zoom Flight [Windows only]

As dodicat would say: "I was inspired", here my inspiration to http://arkadia.xyz. An Infinite zoom-in through the world of Arkadia flight. 'coded by UEZ build 2018-01-09 'inspired by http://arkadia.xyz - thanks to by Nikolaus Baumgarten and Sophia Schomberg 'thanks to spudw2k for the mous...
by UEZ
Jan 04, 2018 18:04
Forum: General
Topic: fast sin compare
Replies: 18
Views: 1159

Re: fast sin compare

Is this faster than the original code? It is infinitely faster because the original code will not compile with optimisation levels -03 and -0fast. Under certain circumstances, GCC may duplicate (or remove duplicates of) your assembly code when optimizing. This can lead to unexpected duplicate symbo...
by UEZ
Jan 04, 2018 12:31
Forum: General
Topic: fast sin compare
Replies: 18
Views: 1159

Re: fast sin compare

@UEZ Put srvadez's and mine side by side and ponder. You will only get half way through a cup of tea and the penny will drop - trust me. <smile> Well, I googled a litte bit: the f suffix means forward and b means backward to the next / previous label. Is this faster than the original code? Btw, the...
by UEZ
Jan 04, 2018 11:30
Forum: General
Topic: fast sin compare
Replies: 18
Views: 1159

Re: fast sin compare

@srvaldez: thanks. :-) The following compiles with -03 and -0fast. Strap yourselves into your chair. <smile> Function _Sin6th(fX As Double) As Double Asm jmp 0f 1: .double 683565275.57643158 2: .double -0.0000000061763971109087229 3: .double 6755399441055744.0 0: movq xmm0, [fX] mulsd xmm0, [1b] add...
by UEZ
Jan 04, 2018 1:09
Forum: General
Topic: fast sin compare
Replies: 18
Views: 1159

Re: fast sin compare

@UEZ you need to compile using gcc, for example: fbc 3D_Sine_Wave.bas -gen gcc -Wc -O2 fast sine is only faster when optimized using gcc, however FB graphics are quite a bit slower when compiled with gcc Indeed, now the fps goes up to 75 fps only when changed the fast_sin calls within _3Dto2D2 sub....
by UEZ
Jan 04, 2018 0:01
Forum: General
Topic: fast sin compare
Replies: 18
Views: 1159

Re: fast sin compare

Well, when I replace only the calls for _Sin6th only with fast_sin in the 3D Sine Wave demo then the FPS decreases from 64 fps to 50 fps!

Compiled with standard -s gui (Win32).
by UEZ
Jan 02, 2018 14:31
Forum: Tips and Tricks
Topic: 3D Sine Wave v1.4 [Windows only]
Replies: 29
Views: 2091

Re: 3D Sine Wave [Windows only]

It crashes here also. The problem is definitely in the drawline routine. I cannot pin point the error. Here is another Bresenham type line. Plotthick carries 4 pixels along a line (False antialiasing ). Plotthin only one pixel carried. I get about 80 fps here with plotthick. You can speed it up by ...
by UEZ
Jan 01, 2018 23:56
Forum: Tips and Tricks
Topic: 3D Sine Wave v1.4 [Windows only]
Replies: 29
Views: 2091

Re: 3D Sine Wave [Windows only]

Any clue why the Xiaolin Wu’s line-drawing algorithm (http://rosettacode.org/wiki/Xiaolin_Wu's_line_algorithm#FreeBASIC) is not working properly? I want to add antialiasing for better looking but no journey to the moon this time. ;-) 'coded by UEZ build 2017-12-31, thanks to eukalyptus for the Sin /...
by UEZ
Dec 31, 2017 11:48
Forum: Tips and Tricks
Topic: 3D Sine Wave v1.4 [Windows only]
Replies: 29
Views: 2091

Re: 3D Sine Wave [Windows only]

dodicat wrote:Nice UEZ.
I was inspired.


Well done dodicat, same rotating grid but different coding approach, at least for me. If I reading your code there are a lot of things to learn for me.

:-)
by UEZ
Dec 31, 2017 1:36
Forum: Tips and Tricks
Topic: 3D Sine Wave v1.4 [Windows only]
Replies: 29
Views: 2091

Re: 3D Sine Wave [Windows only]

@jj2007: have a look here for some more variants coded by eukalyptus: https://forum.qbasic.at/viewtopic.php?t ... nparabolic
by UEZ
Dec 30, 2017 23:55
Forum: Tips and Tricks
Topic: 3D Sine Wave v1.4 [Windows only]
Replies: 29
Views: 2091

Re: 3D Sine Wave [Windows only]

the sin / cos asm variants give a real boost (from 50 fps to 70 fps on my notebook). Yes, that can give some extra performance. For example, Sinus() is a factor 5.5 faster than the FPU's fsin. I am curious to see which sinus algo you are using - can you post it? Look to the functions _Sin6th / _Cos...
by UEZ
Dec 30, 2017 23:36
Forum: Tips and Tricks
Topic: 3D Sine Wave v1.4 [Windows only]
Replies: 29
Views: 2091

Re: 3D Sine Wave [Windows only]

Firstly, thanks for your feedback. Secondly, for my purpose the return values of sin / cos / sqr doesn't need to be scientific correct as this is not a calculation to the moon which need to be precise. The assembly Sqr function doesn't increase the fps very much whereas the sin / cos asm variants g...
by UEZ
Dec 30, 2017 19:17
Forum: Tips and Tricks
Topic: 3D Sine Wave v1.4 [Windows only]
Replies: 29
Views: 2091

Re: 3D Sine Wave [Windows only]

Firstly, thanks for your feedback. Secondly, for my purpose the return values of sin / cos / sqr doesn't need to be scientific correct as this is not a calculation to the moon which need to be precise. The assembly Sqr function doesn't increase the fps very much whereas the sin / cos asm variants gi...
by UEZ
Dec 29, 2017 23:29
Forum: Tips and Tricks
Topic: 3D Sine Wave v1.4 [Windows only]
Replies: 29
Views: 2091

3D Sine Wave v1.4 [Windows only]

'coded by UEZ build 2018-01-04, thanks to ' - eukalyptus for the ASM Sin / Cos functions ' - dodicat for Bresenham type line function ' - srvaldez for porting the fast_sin / fast_cos from 'https://www.gamedev.net/forums/topic/621589-extremely-fast-sin-approximation/ #include "fbgfx.bi" #i...
by UEZ
Dec 29, 2017 15:50
Forum: Tips and Tricks
Topic: Faster Renderer for Pset
Replies: 27
Views: 2413

Re: Faster Renderer for Pset

dodicat wrote:UEZ.
I like your original demo, beats a kitchen floor.

Thanks dodicat but to which demo you are refering to? I wrote a few in FB (most of them on German forum) and plenty in Autoit.

Go to advanced search