Search found 1220 matches

by dafhi
Feb 16, 2019 22:49
Forum: Projects
Topic: "Basic Warfare" FreeBasic Multiplayer RTS Game
Replies: 15
Views: 401

Re: "Basic Warfare" FreeBasic Multiplayer RTS Game

next on my practice list :-)
by dafhi
Feb 16, 2019 16:20
Forum: Projects
Topic: "Basic Warfare" FreeBasic Multiplayer RTS Game
Replies: 15
Views: 401

Re: "Basic Warfare" FreeBasic Multiplayer RTS Game

unit list idea. most-used at front

possible formula
access count in last 30 sec / (unit_time - unit_time_previous)
by dafhi
Feb 13, 2019 9:04
Forum: Projects
Topic: "Basic Warfare" FreeBasic Multiplayer RTS Game
Replies: 15
Views: 401

Re: "Basic Warfare" FreeBasic Multiplayer RTS Game

- load time

+ music
+ overhead parallax
+ RTS

can't wait to learn the game :)
by dafhi
Feb 08, 2019 1:18
Forum: Tips and Tricks
Topic: Image Painting Demos [Windows only]
Replies: 22
Views: 626

Re: Image Painting Demos [Windows only]

thank you UEZ. you are a talented programmer.
by dafhi
Dec 24, 2018 23:27
Forum: Tips and Tricks
Topic: line clip test
Replies: 0
Views: 127

line clip test

i use this to debug my raster-based renderers var w = 640 var h = 480 screenres w,h,32 var a = 3.14159/4 ' start angle while inkey="" var wm = w - 1, wh = wm/2 'dependents var hm = h - 1, hh = hm/2 #define show(x,y) line ( (x), (y) ) - ( (x)+r*cos(a), (y)+r*sin(a) ), -1 var r = sqr(w*w+h*h...
by dafhi
Nov 26, 2018 6:52
Forum: Community Discussion
Topic: Nominations for Forum Moderators
Replies: 70
Views: 4258

Re: Nominations for Forum Moderators

i nominate srvaldez, ST_W
by dafhi
Nov 22, 2018 18:43
Forum: Tips and Tricks
Topic: benchmark sorts
Replies: 13
Views: 794

Re: benchmark sorts

when I developed 'ytQSort2' it took me at least 2 days to get it working. quicksort, it would seem, is one of my achilles' heels. D. J. Peters when I run your pointer sort (latest WinFBE which uncludes fbc 1.06) it still shows Munair's version faster. Have you tried your sort with my profiler? dim s...
by dafhi
Nov 21, 2018 14:46
Forum: Tips and Tricks
Topic: benchmark sorts
Replies: 13
Views: 794

Re: benchmark sorts

updated with Munair's quicksort
by dafhi
Nov 19, 2018 0:33
Forum: Tips and Tricks
Topic: The Mergesort algorithm.
Replies: 29
Views: 938

Re: The Mergesort algorithm.

cool to finally see a mergesort here
by dafhi
Nov 16, 2018 12:27
Forum: General
Topic: raytrace try
Replies: 24
Views: 1413

Re: raytrace try

nice! with the help of a video by inigo quilez "iq", and my own skills, i made an optimized sphere hit. but to use it, you'll need normalize declare property norm as d3d '' or change to function .. property d3d.norm() as d3d var s = 1 / sqr( x * x + y * y + z * z ) return d3d( s * x , s * ...
by dafhi
Nov 06, 2018 14:38
Forum: General
Topic: FreeBASIC's PRNG #2
Replies: 266
Views: 6696

Re: FreeBASIC's PRNG #2

the range thing. with a 64 bit state i guess the bias is ike a needle in a haystack. for a speedy range, you've found a highly unexpected (since mod relates with division) optimization [update] haven't debugged yet with yours (have 2 tests running) Dim Shared As Ulongint x = 12, w = 0 Dim As String ...
by dafhi
Nov 06, 2018 7:44
Forum: General
Topic: FreeBASIC's PRNG #2
Replies: 266
Views: 6696

Re: FreeBASIC's PRNG #2

finally got practRand working. Did a Windows restore and installed vc redist 2013. my new generator works well.
by dafhi
Nov 05, 2018 0:42
Forum: General
Topic: Bernard Widynski's Middle Square Weyl Sequence RNG (MsWs)
Replies: 106
Views: 2411

Re: Bernard Widynski's Middle Square Weyl Sequence RNG (MsWs)

I put hi first in a lot of range-based what-have-you's b/c more often than not, lo is 0

your test code, i gather from brief glances at various threads, is a good short-term indicator of randomness.

these silly RNGs keep distracting me from my new ray tracer :-)

Go to advanced search