Search found 1795 matches

by srvaldez
Feb 15, 2019 11:38
Forum: General
Topic: Checking if a computer is ON on the network
Replies: 9
Views: 190

Re: Checking if a computer is ON on the network

assuming your OS is Windows, perhaps you could use the IsNetworkAlive function https://docs.microsoft.com/en-us/windows/desktop/api/sensapi/nf-sensapi-isnetworkalive I am not a Windows API expert, so this is only an Idea that you may want to consider I ran winapifamily.h through FBfrog, and this is ...
by srvaldez
Feb 13, 2019 22:43
Forum: General
Topic: recreational function approximations
Replies: 9
Views: 241

Re: recreational function approximations

hello dodicat
would you have a look at this pdf and let me know what you think? https://pdfs.semanticscholar.org/43b1/b ... 82c447.pdf
it has source code in TurboBasic, so it should be relatively easy to port to FB if you think it's worth the trouble
by srvaldez
Feb 13, 2019 18:41
Forum: Beginners
Topic: How to do sound
Replies: 3
Views: 130

Re: How to do sound

you may be able to use PlaySound https://docs.microsoft.com/en-us/previo ... (v%3Dvs.85)#requirements
also have a look at this post, perhaps it will you some ideas viewtopic.php?p=220706#p220706
by srvaldez
Feb 06, 2019 18:48
Forum: General
Topic: Max Upload Size
Replies: 7
Views: 209

Re: Max Upload Size

the post limit is 64000 characters, or is it bytes? not sure which, but my guess is that you would probably be able to post your code in one post.
by srvaldez
Feb 04, 2019 19:41
Forum: General
Topic: gmp 6.1.2 and mpfr 4.0.2
Replies: 19
Views: 2406

Re: gmp 6.1.2 and mpfr 3.1.5

updated, first post
by srvaldez
Jan 30, 2019 18:26
Forum: General
Topic: [Freebasic 32 vs 64]
Replies: 32
Views: 640

Re: [Freebasic 32 vs 64]

here's an unexpected result, my times are FBwin32 gas 15.7090276000269 seconds FBwin32 gcc 9.54091600001459 seconds FBwin64 gcc 48.57187550002709 seconds FBdarwin x64 gcc 8.71 seconds spectral-norm.bas /' The Computer Language Benchmarks Game ' ' spectral-norm C gcc #3 program ' https://benchmarksga...
by srvaldez
Jan 30, 2019 15:16
Forum: General
Topic: [Freebasic 32 vs 64]
Replies: 32
Views: 640

Re: [Freebasic 32 vs 64]

here's the binary-tree benchmark, time differences between FB versions are small, my times were FBwin32 gas, 67.26 seconds FBwin32 gcc, 61.59 seconds FBwin64 gcc, 52.00 seconds binary-trees.bas /' The Computer Language Benchmarks Game * https://benchmarksgame-team.pages.debian.net/benchmarksgame/ co...
by srvaldez
Jan 29, 2019 16:54
Forum: General
Topic: [Freebasic 32 vs 64]
Replies: 32
Views: 640

Re: [Freebasic 32 vs 64]

jj2007 wrote: So the reason for the slowness of 32-bit code is just a dumb GCC version, nothing else.

I don't get your point, the 32-bit version compiled with -gen gcc is almost as fast as that of the 64-bit version, the -gen gas version is the one that is slow
by srvaldez
Jan 29, 2019 14:54
Forum: General
Topic: [Freebasic 32 vs 64]
Replies: 32
Views: 640

Re: [Freebasic 32 vs 64]

@Coolman it is your choice which compiler version you want to use, in my experience, FBx64 executables are usually faster than FBx86, except for graphics I don't have a real world benchmark, so here's the nbody benchmark my times on Windows 10 x64 FBwin32, fbc -w all -asm intel -gen gas nbody.bas -0...
by srvaldez
Jan 28, 2019 17:31
Forum: Windows
Topic: Win10 -- Win7 ; same program big time diff
Replies: 4
Views: 143

Re: Win10 -- Win7 ; same program big time diff

also, if compiling with FBx64 use optimization option, I prefer -O 2, or what's the same -Wc -O2
-O3 adds very little to the performance, sometimes it's even slower and it can cause problems.
by srvaldez
Jan 22, 2019 14:08
Forum: Beginners
Topic: timer vs GetTickCount64 precision
Replies: 19
Views: 437

Re: timer vs GetTickCount64 precision

@deltarho[1859]
I had never heard of HPET until now, interesting stuff https://www.ghacks.net/2013/04/18/try-c ... rformance/
by srvaldez
Jan 21, 2019 17:14
Forum: Beginners
Topic: timer vs GetTickCount64 precision
Replies: 19
Views: 437

Re: timer vs GetTickCount64 precision

thank you dodicat for looking into it
@deltarho[1859]
interesting information, thanks for sharing :-)
by srvaldez
Jan 21, 2019 14:40
Forum: Beginners
Topic: timer vs GetTickCount64 precision
Replies: 19
Views: 437

Re: timer vs GetTickCount64 precision

nothing in particular, just wondered which is more accurate, but my test suggest that timer uses QueryPerformanceCounter, so my guess is that timer and GetTickCount64 are the same as far as accuracy is concerned. #define _WIN32_WINNT &h0602 #include "windows.bi" dim as ulongint tc, qc1...
by srvaldez
Jan 21, 2019 13:06
Forum: Beginners
Topic: timer vs GetTickCount64 precision
Replies: 19
Views: 437

timer vs GetTickCount64 precision

just curious to know whether one or the other is more precise and how would you test it? #define _WIN32_WINNT &h0602 #include "windows.bi" dim as ulongint tc dim as double t dim as double s tc = GetTickCount64() t=timer s = 0 for i as longint = 1 to 1000000'000 s += sqr(i) next tc = Ge...

Go to advanced search