Search found 402 matches
- Jan 27, 2021 17:02
- Forum: General
- Topic: wth -- Thread time .vs Subroutine time
- Replies: 211
- Views: 38081
wth -- Thread time .vs Subroutine time
The initial thought: threads should run faster than the main program with no system interrupts. The routine runs through about 10 million calcs in two versions. There should be several processor cycles difference in the for/next loops. Thus I expected about half a millisecond (0.5) difference in the...
Re: Pentacles
@BasicCoder2 very nice drawing :-) could you post your latest tracer code ? @BasicCoder2 Was your generator tool used to draw an outline of the FreeBasic icon horse? I would like to see the code or an explanation of how the algorithm incremented to the next pixel, especially tracing curves of degre...
- Aug 26, 2020 11:03
- Forum: Community Discussion
- Topic: Free Book: Physically Based Rendering From Theory To Implementation
- Replies: 2
- Views: 2848
Re: Free Book: Physically Based Rendering From Theory To Implementation
@D.J.Peters
Thank you.
Thank you.
- Jul 12, 2020 14:53
- Forum: Community Discussion
- Topic: Rule 30
- Replies: 3
- Views: 1396
Re: Rule 30
r30(1,1,1)=0 'Rule 30 matrix
r30(1,1,0)=0 <-- r30(1,1,0) = 1
r30(1,0,1)=0
r30(1,0,0)=1
r30(0,1,1)=1
r30(0,1,0)=1 <-- r30(0,1,0) = 0
r30(0,0,1)=1
r30(0,0,0)=0
using the rule 30 spec my values differ.
r30(1,1,0)=0 <-- r30(1,1,0) = 1
r30(1,0,1)=0
r30(1,0,0)=1
r30(0,1,1)=1
r30(0,1,0)=1 <-- r30(0,1,0) = 0
r30(0,0,1)=1
r30(0,0,0)=0
using the rule 30 spec my values differ.
- Jun 18, 2020 1:52
- Forum: General
- Topic: Duplicates
- Replies: 34
- Views: 4930
Re: Duplicates
Hey all, I have a very large text file (near 1 TB) and on each line there is some text with a minimum length of twenty bytes and a maximum length of perhaps thousands of bytes. From this file I want to remove the duplicates entries. How would one approach this in FreeBASIC? Thanks @Provoni Thank yo...
- Apr 10, 2020 6:23
- Forum: Game Dev
- Topic: Collision detection in 3D
- Replies: 10
- Views: 2750
Re: Collision detection in 3D
@dodicat
Very Good.
The floor shadows are a nice bonus!
Very Good.
The floor shadows are a nice bonus!
- Mar 26, 2020 3:22
- Forum: General
- Topic: Corona virus simulator
- Replies: 47
- Views: 8146
Re: Corona virus simulator
@dodicat
THUMBS UP!
THUMBS UP!
Re: Squares
@Albert. Nothing can go faster than the speed of light, ... . @richard, Everyone knows that. duh! The warp-coil shortens the distance so that it appears as if it's faster that light. It shrinks the distance to the orion nebula from a few light years to a few meters. The universe's internet archives...
- Jan 18, 2020 6:31
- Forum: Sources, Examples, Tips and Tricks
- Topic: prime numbers searcher in QB
- Replies: 15
- Views: 7609
Re: prime numbers searcher in QB
If you step n by 2 (as usual for primes by division), then it is slower for some strange reason, and of course misses out 2. If it steps by two, there is no call/return to the function -- it should be faster. But it is not. Over here, we have a bunch of donkeys and mules, who have no class what so ...
- Jan 17, 2020 8:45
- Forum: Sources, Examples, Tips and Tricks
- Topic: prime numbers searcher in QB
- Replies: 15
- Views: 7609
Re: prime numbers searcher in QB
@D.J.Peters
@fxm
@srvaldez
So, instead of a working class race horse on my desk, I have a mule.
Your response is very much appreciated.
Thank you.
@fxm
@srvaldez
So, instead of a working class race horse on my desk, I have a mule.
Your response is very much appreciated.
Thank you.
- Jan 15, 2020 17:52
- Forum: Sources, Examples, Tips and Tricks
- Topic: prime numbers searcher in QB
- Replies: 15
- Views: 7609
HOW & WHY does cpp Optimize better than FreeBasic?
@admins: if the attached is too close to a copyright violation, PLEASE delete the code portion. at this website https://www.codeproject.com/Tips/5254588/Simple-Prime-Number-Calculator-Cplusplus Fabrizio Civetta stated that his cpp program can generate the primes less that 2million is about 6 second...
- Jan 07, 2020 8:03
- Forum: Projects
- Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
- Replies: 494
- Views: 107772
Re: Gas64 (no more use of gcc, only gas) :-)
@sarg: Thank you.SARG wrote: ...
New version ir-gas and fb64_gas64 : http://users.freebasic-portal.de/sarg/fbc64_gas64.zip
- Oct 21, 2019 11:40
- Forum: Beginners
- Topic: Calculating intersection points
- Replies: 8
- Views: 2063
Re: Calculating intersection points
seems as if the code the code was duplicated, compilation failed. removed duplicate. compiled & run. clarification: You seek to know the intersection: YellowSegment Line(x1,y1)-(x2,y2) with the whiteplane X-axis and YellowSegment Line(x1,y1)-(x2,y2) with the whiteplane Y-axis Thus: simple propor...
- Aug 22, 2019 2:39
- Forum: Sources, Examples, Tips and Tricks
- Topic: prime numbers searcher in QB
- Replies: 15
- Views: 7609
Re: prime numbers searcher in QB
Welcome to the site. I do not recall seeing the double divide before: the floating point & whole number division. That is a different approach. Most would use the shorter (quicker) mod instruction. Nice attempt. Keep up the good work. If speed is what you would like to see, several members have ...
- Jun 11, 2019 4:29
- Forum: Community Discussion
- Topic: building fbc for Windows - for beginners by a beginner
- Replies: 5
- Views: 5049
Re: building fbc for Windows - for beginners by a beginner
THANK YOU
THANK YOU
THANK YOU
I'm tried many times to generate the compiler, but never success.
This will help.
THANK YOU
THANK YOU
I'm tried many times to generate the compiler, but never success.
This will help.