Search found 347 matches

by Provoni
Dec 08, 2019 11:03
Forum: Projects
Topic: Iceroyds!
Replies: 41
Views: 6785

Re: Iceroyds!

Very nice Landeel. I'll add your game to my Steam wish list!

Btw, really cute Penguins. :')
by Provoni
Dec 03, 2019 12:59
Forum: Beginners
Topic: 0-255 number to byte output
Replies: 2
Views: 110

Re: 0-255 number to byte output

Great, thanks fxm.
by Provoni
Dec 03, 2019 12:25
Forum: Beginners
Topic: 0-255 number to byte output
Replies: 2
Views: 110

0-255 number to byte output

Hey all, I want to store numbers between 0 and 255 in a file such that each number is 1 byte but don't know how to do this. Thanks dim as integer i open "test.txt" for output as #1 for i=1 to 100 print #1,str(rnd*256)) 'this will output a number in text rather than it being 1 byte... next ...
by Provoni
Dec 03, 2019 12:19
Forum: Community Discussion
Topic: Sharing some good news :-)
Replies: 9
Views: 560

Re: Sharing some good news :-)

Congratulations!
by Provoni
Dec 01, 2019 17:38
Forum: Beginners
Topic: String Processing
Replies: 10
Views: 385

Re: String Processing

I had a similar problem and the input file was using the UTF-8-BOM encoding. You can check this with Notepad++ under Encoding. If so, put it to UTF-8.
by Provoni
Nov 16, 2019 6:38
Forum: Beginners
Topic: Need speedup
Replies: 20
Views: 971

Re: Need speedup

@12val12newakk You may want to try to replace: Select Case Rglue with: Select Case Rgquadro and change the select case values accordingly. Removing the Rglue dependency may improve the CPU's out of order processing and speed up the code. Like so: Select Case rgquadro 'Rglue case Is >19600 df=9512/(...
by Provoni
Nov 15, 2019 20:30
Forum: Beginners
Topic: Need speedup
Replies: 20
Views: 971

Re: Need speedup

@12val12newakk You may want to try to replace: Select Case Rglue with: Select Case Rgquadro and change the select case values accordingly. Removing the Rglue dependency may improve the CPU's out of order processing and speed up the code. - Can you use a look up table to get the Rglue value instead o...
by Provoni
Nov 05, 2019 12:04
Forum: General
Topic: count of digits in large number
Replies: 5
Views: 235

Re: count of digits in large number

Code: Select all

print len(str(n))
by Provoni
Nov 05, 2019 5:58
Forum: General
Topic: PCG32II Help file
Replies: 36
Views: 1583

Re: PCG32II Help file

Thanks for mentioning. AZdecrypt keeps its threads active, they just wait for input to arrive with a sleep statement added in.
by Provoni
Nov 04, 2019 9:17
Forum: General
Topic: Performance problems with rnd function while multi-threading
Replies: 24
Views: 1074

Re: Performance problems with rnd function while multi-threading

Indeed you are right. The problem for noting this in the documentation is that lots of keywords are not thread-safe, and that it would be a very big job to test them all, in order to have a consistent documentation on this problem. (but this is only my personal opinion) But if you don't note that R...
by Provoni
Nov 03, 2019 13:49
Forum: General
Topic: PCG32II Help file
Replies: 36
Views: 1583

Re: PCG32II Help file

Okay thanks.

From the help file:

The generator is 'warmed up' during MyRandomize.

Code: Select all

' Warm up generator
  For i As Ulong = 1 To 200
    this.rand()
  Next

Why?
by Provoni
Nov 03, 2019 11:59
Forum: General
Topic: PCG32II Help file
Replies: 36
Views: 1583

Re: PCG32II Help file

Nope, my program (AZdecrypt) can use up to 65,536 threads (current artificial limit) and the problems it solves can be parallelized by dividing the restarts over the amount of threads. Here is the project page: http://www.zodiackillersite.com/viewtopic.php?f=81&t=3198 I am currently testing whet...
by Provoni
Nov 03, 2019 11:44
Forum: General
Topic: Performance problems with rnd function while multi-threading
Replies: 24
Views: 1074

Re: Performance problems with rnd function while multi-threading

For about a year I was using RND in multi-threaded code and all I knew was that there were significant diminishing returns from using more and more threads. So I ran multiple instances of my program to overcome this. Per accident I found out it was RND causing a massive slowdown. I think there shoul...
by Provoni
Nov 03, 2019 11:07
Forum: General
Topic: Performance problems with rnd function while multi-threading
Replies: 24
Views: 1074

Re: Performance problems with rnd function while multi-threading

@fxm Perhaps a mention could be made in the FBWiki that RND is not thread-safe: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgRnd

@coderJeff Could RND be made thread-safe? Is this on the to do list?

Thanks guys.

Go to advanced search