Search found 966 matches

by dafhi
Jan 13, 2018 1:35
Forum: Projects
Topic: Aa Lines
Replies: 14
Views: 2078

Re: Aa Lines

now on github
by dafhi
Jan 09, 2018 14:21
Forum: Tips and Tricks
Topic: Infinite Image Zoom Flight [Windows only]
Replies: 23
Views: 793

Re: Infinite Image Zoom Flight [Windows only]

nice, they look great! I think i'll have a go after this got my zoomer working though. I'm not certain if it's the quality of my sampler or some kind of x y w h miscalculation at image transition ' ------- uses GDI+ to load jpg #Ifndef Floor #Define Floor(x) (((x) * 2.0 - 0.5) Shr 1) '' http://www.f...
by dafhi
Jan 09, 2018 13:48
Forum: Tips and Tricks
Topic: Infinite Image Zoom Flight [Windows only]
Replies: 23
Views: 793

Re: Infinite Image Zoom Flight [Windows only]

well thanks you both for sharing. the only win api I've had success with is StretchDiBits
by dafhi
Jan 09, 2018 3:54
Forum: Tips and Tricks
Topic: Infinite Image Zoom Flight [Windows only]
Replies: 23
Views: 793

Re: Infinite Image Zoom Flight [Windows only]

kudos. I pulled Pload and made it less pretty but it's fast.
dodicat, your new loader is faster and pretty.

and of course resize is faster. as a programming challenge, this whole arcadia thing remains at the top of my list :D
by dafhi
Jan 07, 2018 12:02
Forum: Tips and Tricks
Topic: Infinite Image Zoom Flight [Windows only]
Replies: 23
Views: 793

Re: Infinite Image Zoom Flight [Windows only]

The original web version is much smoother in zooming animation. GDI is unfortunately not. Maybe someone has an idea... ' roto zoom by dafhi ' update: replaced int() with floor() for a 50% performance boost ' - explanation - 'imagine scaling an image so you can see big pixels. (pixellated, not smoot...
by dafhi
Dec 30, 2017 23:07
Forum: Tips and Tricks
Topic: 3D Sine Wave v1.4 [Windows only]
Replies: 29
Views: 947

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 dafhi
Dec 30, 2017 0:56
Forum: Tips and Tricks
Topic: 3D Sine Wave v1.4 [Windows only]
Replies: 29
Views: 947

Re: 3D Sine Wave

cool! I'm seeing odd speed compare under gcc -O 3 Function _ASM_Sqr(n As Single) As Single '' https://www.freebasic.net/forum/viewtopic.php?f=7&t=26248#p241751 Asm rsqrtss xmm0, [n] mulss xmm0, [n] movss [function], xmm0 End Asm End Function dim as double sum0, sum1, t dim as integer c0, c1 var ...
by dafhi
Dec 28, 2017 9:18
Forum: Community Discussion
Topic: tips from a demo coder
Replies: 15
Views: 550

Re: tips from a demo coder

Only combinations of 1/2, 1/4, 1/8, 1/16, etc can be represented precisely with binary, up to the limit of the significant digits in the IEEE format you are using. Many common decimal fractions end up being infinitely-repeating sequences in binary. For example, if my binary division skills are work...
by dafhi
Dec 27, 2017 6:30
Forum: Community Discussion
Topic: tips from a demo coder
Replies: 15
Views: 550

Re: tips from a demo coder

4:10
by dafhi
Dec 26, 2017 23:52
Forum: Community Discussion
Topic: tips from a demo coder
Replies: 15
Views: 550

tips from a demo coder

this guy gives an interesting talk
https://www.youtube.com/watch?v=h4MS5zU_C0c
by dafhi
Dec 12, 2017 20:18
Forum: Tips and Tricks
Topic: triangle wave tex
Replies: 2
Views: 280

Re: triangle wave tex

I changed the thread title. I have some other project ideas to combine with this but for now I'll try to keep it simple.
by dafhi
Dec 12, 2017 2:11
Forum: Tips and Tricks
Topic: triangle wave tex
Replies: 2
Views: 280

triangle wave tex

' -- triangle wave texture - 2017 Dec 13 - by dafhi -- ' ' update - render() optimizations ' this cool effect uses an axis to represent a planar grid slicing through 3d space. ' it was inspired by a simple moire pattern seen on, if memory serves, a webpage background. '' -- image variables type - 2...
by dafhi
Dec 03, 2017 18:28
Forum: Tips and Tricks
Topic: benchmark sorts
Replies: 7
Views: 331

Re: benchmark sorts

jj2007 - hopefully MrSwiss caught the error (which I fixed)

srvaldez - I use O 3
by dafhi
Dec 03, 2017 10:06
Forum: Tips and Tricks
Topic: benchmark sorts
Replies: 7
Views: 331

benchmark sorts

2017 Dec 4 - tweaked comb sort - mesg = " " initialization, based on jj2007's post /' benchmark sorts - 2017 Dec 4 - by dafhi Info: 1. collection of a few standard sorts 2. fairly consistent performance framework updates - tweaked comb sort - sub Main(): mesg = " " '/ '' ------- ...

Go to advanced search