Search found 2519 matches

by deltarho[1859]
Sep 12, 2020 15:03
Forum: General
Topic: Data Compression
Replies: 53
Views: 1163

Re: Data Compression

Expected outcome of this thread.
Image
by deltarho[1859]
Sep 09, 2020 22:57
Forum: Tips and Tricks
Topic: Endless loop.
Replies: 26
Views: 554

Re: Endless loop.

Yours truly wrote:With Windows 10 the above bracketing is OK - timeBeginPeriod activates immediately.

You cannot use close bracketing before Windows 10.

We have to use

Code: Select all

settimer
Sleep 16 ' timeBeginPeriod will now be active

I proved the need for Sleep 16 in 2014 at PowerBASIC with Win7.
by deltarho[1859]
Sep 09, 2020 22:05
Forum: Tips and Tricks
Topic: Endless loop.
Replies: 26
Views: 554

Re: Endless loop.

It is worth noting that we should not bracket settimer and freetimer like this: settimer <code> freetimer for Windows platforms before Windows 10 because it takes two system clock ticks for timeBeginPeriod to activate. It is better to use settimer at the head of our code. We don't actually need free...
by deltarho[1859]
Sep 09, 2020 19:58
Forum: Tips and Tricks
Topic: Endless loop.
Replies: 26
Views: 554

Re: Endless loop.

@dodicat You are missing the point. This is what we have: <-------------------- 1/fps required -------------------> <-------=---- Do/Loop workload -----=----><--- Sleep ---> Faster systems will see the 'Do/Loop workload' reduce and the Sleep component increase for the same 1/fps. If we increase fps ...
by deltarho[1859]
Sep 09, 2020 16:16
Forum: Tips and Tricks
Topic: Endless loop.
Replies: 26
Views: 554

Re: Endless loop.

@dodicat

I don't understand your logic.

If 'Sleep regulate(40,fps)' can only manage 20fps then increasing that 40 will have zero effect.

The ceiling is the Do/Loop workload without the Sleep.
by deltarho[1859]
Sep 09, 2020 15:27
Forum: Tips and Tricks
Topic: Endless loop.
Replies: 26
Views: 554

Re: Endless loop.

...would that please the members who test I wonder? I don't have a problem with 20fps - I am not wishing for more. I do have a problem with 'regulate(40,fps)' coming in with a value of '1' causing a request of 'Sleep 1' which will actually sleep for 15.625ms. Sleeping for longer than required will ...
by deltarho[1859]
Sep 09, 2020 11:54
Forum: Tips and Tricks
Topic: Endless loop.
Replies: 26
Views: 554

Re: Endless loop.

My regulate function regulates regardless of 1 or 15.625 milliseconds sleep. Obviously. If you have 15.625 as sleep 1 then it will regulate to about 60 fps or whatever the max fps the machine can achieve. OK, so why when I am using '-fpu sse -arch 686 -gen gcc -Wc -O3' with gcc 8.3 (the fastest ver...
by deltarho[1859]
Sep 09, 2020 8:44
Forum: Tips and Tricks
Topic: Endless loop.
Replies: 26
Views: 554

Re: Endless loop.

The resolution of Sleep is too coarse in dodicat's 'Sleep regulate(<whatever>,fps)'. Requesting a Sleep of less than 15.625ms, and we get 15.625ms whether we like it or not. I always add: Declare Function settimer Alias "timeBeginPeriod"(As Ulong=1) As Long settimer to dodicat's graphics p...
by deltarho[1859]
Sep 04, 2020 4:52
Forum: Beginners
Topic: Slow printing to console screen
Replies: 14
Views: 323

Re: Slow printing to console screen

Just for fun - time 'Screen 19'.
by deltarho[1859]
Aug 31, 2020 18:52
Forum: General
Topic: Number Trick
Replies: 126
Views: 3158

Re: Number Trick

albert wrote:I'm working on a way to square large numbers....

OK. I am out of this thread now. I wrote earlier: "I am sorry albert but I cannot get excited about squaring huge numbers"
by deltarho[1859]
Aug 31, 2020 18:08
Forum: General
Topic: Number Trick
Replies: 126
Views: 3158

Re: Number Trick

What we have is

n/10*(9 - n/10) for n = 90, 80, 70, ..., 10

The point of the exercise being what?
by deltarho[1859]
Aug 31, 2020 5:44
Forum: General
Topic: Number Trick
Replies: 126
Views: 3158

Re: Number Trick

The graveyard is full of methods which could not be cracked by their authors. The only method that I know of for certain cannot be cracked is a one-time pad which uses a key at least as long as the plaintext so not very useful for long messages. Your method does not seem very useful for long message...
by deltarho[1859]
Aug 31, 2020 2:03
Forum: General
Topic: Number Trick
Replies: 126
Views: 3158

Re: Number Trick

I do home-brewed encryption for the fun of it, but for serious work I use AES. How do you think "Vari_Cyph" will fare with a quantum computer? RSA and ECDSA are dead in the water when quantum computers mature. Not sure about AES128 but AES256 hasn't much to worry about. 'Pound for pound' A...
by deltarho[1859]
Aug 31, 2020 0:48
Forum: General
Topic: Number Trick
Replies: 126
Views: 3158

Re: Number Trick

@albert I am sorry albert but I cannot get excited about squaring huge numbers; I have my projects as well. One goal is to write some Blake2b code to initialize, stream chunks of data and then finalize. Blake3 is supposed to be even faster. I would like to use it in Encrypternet which currently uses...
by deltarho[1859]
Aug 30, 2020 22:43
Forum: General
Topic: Number Trick
Replies: 126
Views: 3158

Re: Number Trick

didn't get into Algebra or Geometry or trig or Calculus... You need to 'get into' Algebra. I won't give you any links - the internet is awash with sites from Basic Algebra and above. It would be greatly beneficial to devote some time to learning just the basics - if you cannot prove the concept of ...

Go to advanced search