Search found 1322 matches

by dafhi
Jul 31, 2020 15:38
Forum: General
Topic: A PRNG for graphics programs?
Replies: 84
Views: 1742

Re: A PRNG for graphics programs?

thought i'd share this before i go to bed /' My fascination with high period RNGs continues. My state variable is 8 bits. I'm getting period greater than 256 with the combination of multiplier weyl xorshift looking to extend this '/ #undef int #define int as integer type rect int w, h End Type '' gr...
by dafhi
Jul 23, 2020 3:57
Forum: Game Dev
Topic: Liquid Fabric. A fast water ripple engine object for games.
Replies: 2
Views: 158

Re: Liquid Fabric. A fast water ripple engine object for games.

that FPS tho. A lot of integer with FP sprinkles. Good for us old dogs.
by dafhi
Jul 10, 2020 13:53
Forum: General
Topic: Oh no, not another PRNG
Replies: 80
Views: 2197

Re: Oh no, not another PRNG

thanks dodicat. x128xx (xorshiro128**) mylit as ULong passes to 32 Gigs. Total Fail @ UShort I suspect it has something to do with multiplier granularity my generator-in-development doesn't trigger as many fails at 16 bits, but doesn't succeed @ 32 #include "crt.bi" randomize 0,1 type myli...
by dafhi
Jul 10, 2020 11:34
Forum: General
Topic: Oh no, not another PRNG
Replies: 80
Views: 2197

Re: Oh no, not another PRNG

I am an bright for 2 reasons. That should read i d i o t. 1. even if I put two 16's together, the period would not be greater than one 16 bit. 2. much more simply, I could change mylit to ulong. (original post) been so long since I've used practrand. It was you and dodicat who fleshed out a FB / pra...
by dafhi
Jul 10, 2020 10:42
Forum: General
Topic: Oh no, not another PRNG
Replies: 80
Views: 2197

Re: Oh no, not another PRNG

it's 64 bit tho right? the framework i presented is 16.

edit: so, tack 2 16's to simulate a 32. if pract passes to 4 Gigs, that's what i mean
by dafhi
Jul 10, 2020 10:00
Forum: General
Topic: Oh no, not another PRNG
Replies: 80
Views: 2197

Re: Oh no, not another PRNG

@dafhi Why do you rewrite FB's syntax so much, your code becomes unreadable? ah okay. hard for me to tell sometimes ;) @dafhi Looking at the code further the engine, x128xx, which should run quickly calls rotl three times. rotl has an overhead - a rotl definition does not! what i meant was tack two...
by dafhi
Jul 09, 2020 12:38
Forum: General
Topic: Oh no, not another PRNG
Replies: 80
Views: 2197

Re: Oh no, not another PRNG

one could probably reduce practrand time using a smaller literal. thanks for sharing the new generator type mylit as ushort const bit_size = len(mylit) * 8 #undef int #define int as integer #define func function #define ret return func rotl(in as mylit, amount int) as mylit ret in shl amount or in s...
by dafhi
Jul 08, 2020 6:43
Forum: General
Topic: Oh no, not another PRNG
Replies: 80
Views: 2197

Re: Oh no, not another PRNG

I'd put my money on Melissa. If she were to release a new generator, it will put all others to shame.

MsWs is pretty awesome
by dafhi
Jul 08, 2020 5:40
Forum: General
Topic: Oh no, not another PRNG
Replies: 80
Views: 2197

Re: Oh no, not another PRNG

practrand can test well into the exabyte range, if I remember. I think it took 4 days just for the 64T pass .. I pushed for 128T but I think it froze. Waited 4 extra days beyond the expected report time. edit: my bad. I hit 32T. I pushed for 64 edit: yep, practrand testing limit. Part 2 Section D
by dafhi
Jul 08, 2020 4:24
Forum: General
Topic: Oh no, not another PRNG
Replies: 80
Views: 2197

Re: Oh no, not another PRNG

thanks for the update this works great for path tracing (mont carlo 3d graphics) a *= a a xor= b b += 1 not so much for cryptography. my math background is high school with a some exposure to 'the beyond' in college. I suspect that MsWs warms up pretty fast. My own gen which breezes pract to 64T is ...
by dafhi
Jun 04, 2020 15:49
Forum: General
Topic: Why is it crashing?
Replies: 6
Views: 298

Re: Why is it crashing?

wow. It looks like its made of pixels but I see that lines is the primitive. still somewhat in shock; it's very beautiful
by dafhi
May 16, 2020 23:29
Forum: General
Topic: Squares
Replies: 8001
Views: 501606

Re: Squares

The energy that creates worlds and human imagination are one in the same
by dafhi
May 10, 2020 23:16
Forum: General
Topic: Line Benchmark w/o AA
Replies: 6
Views: 695

Re: Line Benchmark w/o AA

it's gorgeous =) i must do some tests 75% improvement w/ Alpha256 [update 2] #define def #define #undef int def int as integer def sng as single def dbl as double '' http://www.freebasic.net/forum/viewtopic.php?p=118633 def floor(x) (((x)*2.0-0.5)shr 1) Type d2 As Single x,y End Type Sub fill(p() As...
by dafhi
May 10, 2020 21:16
Forum: General
Topic: Line Benchmark w/o AA
Replies: 6
Views: 695

Re: Line Benchmark w/o AA

finally got it /' -- line-rect clipper 2020 May 11 - by dafhi -- updates auto exit @1 min unused vars wm hm moved namespace 'slope' after subs that don't use simplified clip and clip_hypervisor renamed loopstart to loop_positive '/ #undef int #define def #define def int as Integer def sng as single ...
by dafhi
Apr 29, 2020 22:17
Forum: General
Topic: Line Benchmark w/o AA
Replies: 6
Views: 695

Re: Line Benchmark w/o AA

I suppose i should shut my trap and wait till i have something complete =)

Clean, efficient bounds checks for me will be the next step. I'm usually playing video games but when I have a-ha moments I can plow through code quickly

Go to advanced search