Search found 347 matches

by Provoni
Nov 03, 2019 10:59
Forum: General
Topic: PCG32II Help file
Replies: 36
Views: 1847

Re: PCG32II Help file

Hey deltarho[1859], You keep posting whilst I am composing my posts. Haha, sorry. Probably a noob question but how does your PCG32II know whether the use Function pcg32.range( Byval One As Long, Byval Two As Long ) As Long or Function pcg32.range( Byval One As Double, Byval Two As Double ) As Double...
by Provoni
Nov 03, 2019 10:40
Forum: General
Topic: PCG32II Help file
Replies: 36
Views: 1847

Re: PCG32II Help file

Hey deltarho[1859],

I read your comment in the other thread and

Code: Select all

Dim shared pcg(threads) as pcg32

has fixed the speed issue for me. But is that okay to do?
by Provoni
Nov 03, 2019 10:30
Forum: General
Topic: PCG32II Help file
Replies: 36
Views: 1847

Re: PCG32II Help file

Sorry to cause all this stir deltarho[1857] but PCG32II is performing up to par now! I was simply not using a unique generator for every thread.
by Provoni
Nov 03, 2019 10:22
Forum: General
Topic: Performance problems with rnd function while multi-threading
Replies: 24
Views: 1291

Re: Performance problems with rnd function while multi-threading

Why does rnd slow down so much when called from many threads? Because the many threads are calling the same function, ie RND, and there will be collisions causing a drop in throughput. The generator has to be thread safe to avoid collisions and very few generators are thread safe, none of the FreeB...
by Provoni
Nov 03, 2019 10:17
Forum: General
Topic: PCG32II Help file
Replies: 36
Views: 1847

Re: PCG32II Help file

Without optimizations on FreeBASIC-1.07.1-win64-gcc-5.2.0: 1 thread: FreeBASIC rng 4: 10.65 PCG32II: 3.34 Custom: 10.22 4 threads: FreeBASIC rng 4: 13.39 PCG32II: 7.28 Custom: 2.81 8 threads: FreeBASIC rng 4: 13.32 PCG32II: 8.28 Custom: 1.58 The PCG32II was downloaded from your source a few days ago.
by Provoni
Nov 03, 2019 9:24
Forum: General
Topic: Performance problems with rnd function while multi-threading
Replies: 24
Views: 1291

Re: Performance problems with rnd function while multi-threading

Bump: this is still happening and makes the use of rnd while threading in a performance critical application unpractical. Why does rnd slow down so much when called from many threads?
by Provoni
Nov 03, 2019 9:21
Forum: General
Topic: PCG32II Help file
Replies: 36
Views: 1847

Re: PCG32II Help file

Here's some (very bad) code to illustrate the problem. It generates (300,000,000 / threads) random numbers per single thread. Change threads from 1 to 4 to see the effect. - At 1 thread PCG32II and FreeBASIC rng 4 take 1 second for the 300,000,000 random numbers. - At 4 threads PCG32II takes 3.3 sec...
by Provoni
Nov 03, 2019 8:53
Forum: General
Topic: PCG32II Help file
Replies: 36
Views: 1847

Re: PCG32II Help file

Your "pcg.Range(1,s)" does about 300 Mhz for me on a single thread. Obviously the multi-threading is causing a massive slow down somehow.
by Provoni
Nov 03, 2019 8:34
Forum: General
Topic: PCG32II Help file
Replies: 36
Views: 1847

Re: PCG32II Help file

hey deltarho[1859], An integer is needed, not a float. I am thinking it may be the overhead of the function call also and I am trying to convert the code so that it can be used locally in the thread. You say that it is running at 300 to 600 Mhz. My program does about 100,000,000 iterations per secon...
by Provoni
Nov 02, 2019 8:39
Forum: General
Topic: PCG32II Help file
Replies: 36
Views: 1847

Re: PCG32II Help file

Hey deltarho[1859], I am experimenting with your PCG32II and have a problem. From the help file I simply added this to my program: #include "PCG32II.bas" Dim pcg as pcg32 And then call: random_number=pcg.Range(1,s) Where s is no larger than 2000. This code is called from tens of threads (v...
by Provoni
Oct 20, 2019 6:15
Forum: General
Topic: GCC compile delay on large projects?
Replies: 14
Views: 4090

Re: GCC compile delay on large projects?

jj2007 wrote:
Provoni wrote:My project takes about 2 minutes to compile
How many lines of code is that?

More than 50k: viewtopic.php?f=8&t=23188
by Provoni
Oct 19, 2019 16:37
Forum: General
Topic: GCC compile delay on large projects?
Replies: 14
Views: 4090

Re: GCC compile delay on large projects?

With compile delay do you mean compile time?

My project takes about 2 minutes to compile. Size matters allot especially with the optimization flags added in.
by Provoni
Oct 19, 2019 13:01
Forum: General
Topic: YouTube increases FreeBASIC performance (solved)
Replies: 6
Views: 333

Re: YouTube increases FreeBASIC performance

Certain browsers allow YouTube to set the internal resolution of the timer to a lower value, as discussed here . See also this FB thread : jj: some applications, notably Firefox, have the bad habit to set 1 ms resolution when playing videos on YouTube etc, and that's a system-wide setting dodicat: ...
by Provoni
Oct 19, 2019 8:10
Forum: General
Topic: YouTube increases FreeBASIC performance (solved)
Replies: 6
Views: 333

YouTube increases FreeBASIC performance (solved)

Hey all, Having YouTube open in Google Chrome increases the multi-threaded performance of my FreeBASIC program by about 5%. It does not happen with other web sites. Tested multiple times so this is not because of the margin of error and I have noticed this over a period of about 2 years. I am stupef...
by Provoni
Oct 10, 2019 13:57
Forum: Projects
Topic: AZdecrypt 1.16
Replies: 8
Views: 4425

Re: AZdecrypt

AZdecrypt 1.16 released: http://www.zodiackillersite.com/viewtopic.php?f=81&t=3198 Download: https://drive.google.com/open?id=1vB1G8IAeelsz6mZU6chQ7azthSv8seky AZdecrypt 1.16: What's new? - Version 4 of beijinghouse's 6-grams and 7-grams included which use a special low memory no-compromise n-gr...

Go to advanced search