Search found 2490 matches

by MrSwiss
Jun 16, 2018 10:42
Forum: Beginners
Topic: Hello looking for some tutorials
Replies: 2
Views: 99

Re: Hello looking for some tutorials

Tutorials are in the official FreeBASIC documentation too, however,
they may not be up to date: FB-Documentation (see Community Tutorials)
Some thoughts and ideas concerning: beginners & Libraries
by MrSwiss
Jun 16, 2018 0:26
Forum: Documentation
Topic: FB palette array datatypes
Replies: 15
Views: 293

Re: FB palette array datatypes

I also think you arbitrarily assign the cause, ... Could you please, be a bit more specific, on that "arbitrarily" statement? I think that I've explained later on sufficiently, what is meant in the first statement. To be honest, not really looking for opinions, just to let users know it's...
by MrSwiss
Jun 15, 2018 19:20
Forum: Community Discussion
Topic: Speed of FreeBasic
Replies: 53
Views: 2175

Re: Speed of FreeBasic

deltarho[1859] wrote:The phrase is actually 'Apples vs oranges'.
While this may be correct in english, in german, we like to be, from afar different: it's as written ;-)
(since both of them, are still fruits, right?)
by MrSwiss
Jun 15, 2018 16:41
Forum: Game Dev
Topic: What is good cross platform gameloop?
Replies: 36
Views: 1357

Re: What is good cross platform gameloop?

I don't quite understand why the return is Long, but: Dim As ULong mode, cnt = 1 Dim As UShort w, h, cd = 32 ' cd = color depth (in bit's) ' macros: v (value) is converted to ULong (32 bit) then filtered (to 16 bit) ' since 'built in' macros cast to UInteger, they're considered "unsafe" in...
by MrSwiss
Jun 15, 2018 15:48
Forum: Community Discussion
Topic: Speed of FreeBasic
Replies: 53
Views: 2175

Re: Speed of FreeBasic

Just for fun (with code by: zxretrosoft): Loop Until, sped up by using AndAlso (instead of, And) loop until (h1=ps1 AndAlso h2=ps2) AndAlso (h3=ps3 AndAlso h=x) + used fbc64 ver. 1.05.0: -s console -gen gcc -O 3 -fpu sse runtime = approx.: 4.11 Seconds !!! <-- if you want to do: speed comparisons, p...
by MrSwiss
Jun 15, 2018 12:03
Forum: Documentation
Topic: FB palette array datatypes
Replies: 15
Views: 293

Re: FB palette array datatypes

Perhaps, but currently, ULong pallette arrays do not work with FBC-64. This is due to: legacy language mode = QB! The Ball & Chain, on FB's legs ... Even if QB afaik, had type Long = 32 bit int type (Integer, in QB = Short in FB). This is the reason, that GFXLib2 requires "Integer" as...
by MrSwiss
Jun 15, 2018 11:25
Forum: Documentation
Topic: FB palette array datatypes
Replies: 15
Views: 293

Re: FB palette array datatypes

... the declared type of palette array should always be an U/Integer (32-bit or 64-bit, depending on the platform) This is clearly (from a memory allocation point of view), the wrong approach, since any 32 bit's color should only ever be represented by ULong! (fixed unsigned 32 bit type, uint in &q...
by MrSwiss
Jun 13, 2018 12:37
Forum: Game Dev
Topic: What is good cross platform gameloop?
Replies: 36
Views: 1357

Re: What is good cross platform gameloop?

@coderJeff, H & W are DWORD on windows and __u32 on linux (i.e. ULONG SHORT ) at the API Aka: H = WORD, L = WORD (USHORT) ... by M$'s definition of data-types, as well as __u32 seems to be ... (I'm not 'a jour' on LIN-vars.). the Field=1 statement in -lang FB has only an effect if: 1) the defaul...
by MrSwiss
Jun 13, 2018 1:51
Forum: Documentation
Topic: Wiki improvements
Replies: 155
Views: 4854

Re: Wiki improvements

Btw: it is the very same, with: "Protected:" access ...
by MrSwiss
Jun 12, 2018 21:45
Forum: Beginners
Topic: Byval myType PTR vs. myType as function parameter?
Replies: 14
Views: 336

Re: Byval myType PTR vs. myType as function parameter?

sancho3 wrote:SUB somesub2(/'this parameter defaults To byref '/ zzz as type__t)

Sorry, this is incorrect, because "not stated passing method" defaults to: ByVal, except in
cases, where default ByRef is implicit (Array's passing, where "specifiers" are forbidden).
by MrSwiss
Jun 12, 2018 21:18
Forum: Documentation
Topic: Wiki improvements
Replies: 155
Views: 4854

Re: Wiki improvements

Well, that truely clears yet another one, of those mysteries ... thanks.

A Note on doc, related to Private: should imho state:
Everything with "private" access, cannot be inherited, as opposed to "protected" access rights.
by MrSwiss
Jun 12, 2018 21:04
Forum: Documentation
Topic: Wiki improvements
Replies: 155
Views: 4854

Re: Wiki improvements

Should have known that, because I've checked the manual on those, yesterday. However, apart from mentioning "inheritance" on Protected, there isn't much on: details on them, or a direct comparison (except as stated above). What you are saying is: Private: Type.Member isn't "inheritabl...
by MrSwiss
Jun 12, 2018 20:35
Forum: Documentation
Topic: Wiki improvements
Replies: 155
Views: 4854

Re: Wiki improvements

What is the "overloaded" expression, a parameter declaration? Just a 'proxy' or 'dummy' for any variables etc. What I gathered from your article: 1) if a overloaded Constructor exists, then implicit, default Constructor is destroyed! 2) since a derived type always calls: Base() Constructo...
by MrSwiss
Jun 12, 2018 20:12
Forum: Documentation
Topic: Wiki improvements
Replies: 155
Views: 4854

Re: Wiki improvements

Because for me, the answer is obvious and more general: A procedure (declared for any reason) may have no implementation (no body defining) if it is never actually called in the program. This isn't what I mean by Implementation: "do I have to write out such 'empty body' thingy? That's the real...
by MrSwiss
Jun 12, 2018 19:10
Forum: Game Dev
Topic: What is good cross platform gameloop?
Replies: 36
Views: 1357

Re: What is good cross platform gameloop?

dim as integer opt_width = 1920 dim as integer opt_height = 1080 dim as integer opt_depth = 32 had to be done (FBC 64, 1.05/1.06), as dodicat describes ... multiple Sleep statements (before each End x, statement) recoded SCREEN_MODE_SIZE: ' since field alignments are useless (doesn't change anythin...

Go to advanced search