Search found 769 matches

by Landeel
Jun 30, 2021 11:58
Forum: Libraries
Topic: FBImage static Win/Lin 32/64-bit
Replies: 63
Views: 16046

Re: FBImage static Win/Lin 32/64-bit

I had to make a small change in the header to compile with fbc 1.08.0.

Just changed

Code: Select all

imageinfo imgDst,,,,dpitch,d

to

Code: Select all

dim as integer w2,h2
imageinfo imgDst,w2,h2,,dpitch,d


This is very useful BTW.
Thank you again, D.J.Peters.
by Landeel
Jun 27, 2021 12:28
Forum: General
Topic: Question about threads and mutexes
Replies: 8
Views: 307

Re: Question about threads and mutexes

Thanks for the explanation adeyblue! I got it.
Your version looks way more elegant, fxm.
by Landeel
Jun 27, 2021 1:22
Forum: General
Topic: Question about threads and mutexes
Replies: 8
Views: 307

Re: Question about threads and mutexes

Why do you want to protect from possible flickering? - The window is never cleared. - Always the same number of characters are written starting from the same location (1, 1). Otherwise: - 'screensynch()' is a process of thumb because the plotting/printing must fit inside the small i...
by Landeel
Jun 26, 2021 17:04
Forum: General
Topic: Question about threads and mutexes
Replies: 8
Views: 307

Re: Question about threads and mutexes

It is safer to: - Use a thread sub of signature: 'Sub(Byval As Any Ptr)' . - Use a mutex to avoid multi-threading conflict between 'swap string1, string2' and 'print string1+" "' , even if 'swap' only exchanges the string decriptors, because the des...
by Landeel
Jun 26, 2021 14:01
Forum: General
Topic: Question about threads and mutexes
Replies: 8
Views: 307

Question about threads and mutexes

dim shared as boolean finished=false dim shared as string string1, string2 string1="1" : string2="2" sub stringChange() do string2="'"+chr(128+rnd*64)+"'" swap string1, string2 loop until finished end sub screen 13 dim shared as any ptr stringChange_ptr=procp...
by Landeel
Jun 12, 2021 15:06
Forum: Community Discussion
Topic: FreeBASIC 1.08.0 Release Discussion (June 2021)
Replies: 72
Views: 3951

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

It does work when I cross-compile for Windows and run it with wine.
by Landeel
Jun 12, 2021 14:04
Forum: Community Discussion
Topic: FreeBASIC 1.08.0 Release Discussion (June 2021)
Replies: 72
Views: 3951

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

I couldn't get 'SET_GL_SCALE' to work even with this workaround. The work-around works for me. Can you post (short) sample code to compare between fbc 1.07.3 and 1.08.0? Fix for screencontrol committed in fbc 1.08.1 (fbc-1.08 branch) & fbc 1.09.0 (master branch) I'm on Lubuntu 22.04. Tried comp...
by Landeel
Jun 11, 2021 14:15
Forum: Community Discussion
Topic: FreeBASIC 1.08.0 Release Discussion (June 2021)
Replies: 72
Views: 3951

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

I switched to 1.08.0, and found this bug. Hmmm. I wrote the new gfx SCREENCONTROL API entry points wrong .. so that sucks. They are ok for GET functions but not SET. The mistake is obvious now that you have pointed it out, thank-you. If you do want to test other parts of version 1.08.0 you can use ...
by Landeel
May 11, 2021 14:04
Forum: General
Topic: getjoystick and hot-plugging
Replies: 0
Views: 202

getjoystick and hot-plugging

Getjoystick doesn't work when you hotplug a joystick. That's something most modern games support.
Getjoystick is in the gfxlib, right? I guess it enumerates the joysticks on initialization.
Is there a way to force it to re-initialize when a new joystick is detected?
by Landeel
Dec 31, 2020 13:31
Forum: Game Dev
Topic: Kung Fu Er San (another WIP)
Replies: 0
Views: 744

Kung Fu Er San (another WIP)

Here's another game I'm working on. Inpired by Konami's Yie Ar Kung Fu. https://i.ytimg.com/an_webp/XQomglAnfQI/mqdefault_6s.webp?du=3000&sqp=CKDvtv8F&rs=AOn4CLCXMk1OQlbqNyUUASVohiFaLZTbJw https://youtu.be/XQomglAnfQI https://i.ytimg.com/an_webp/lKHywHMUvBQ/mqdefault_6s.webp?du=3000&sqp=...
by Landeel
Dec 29, 2020 12:30
Forum: Linux
Topic: Why do graphics programs require libtinfo/ncurses?
Replies: 9
Views: 1865

Re: Why do graphics programs require libtinfo/ncurses?

I'm interested too.
Maybe the "-s gui" flag could be used on Linux to eliminate the libtinfo dependency.
by Landeel
Dec 11, 2020 12:46
Forum: General
Topic: Compile times
Replies: 23
Views: 1481

Re: Compile times

Because if you ship something different than you develop with, you risk then that you ship bugs only exposed in the gcc backend (not necessarily in GCC, the FB gcc specific part counts too). Or Heisenbugs that suddenly get exposed because the gcc binary has a different memory layout etc. Games are ...
by Landeel
Dec 10, 2020 19:24
Forum: General
Topic: Compile times
Replies: 23
Views: 1481

Re: Compile times

For my games, gas compiles much faster, so that's what I use while developing.
When I need to compile the final version, I usually use gcc and all optimizations, because it gives me the higher fps.

My time measure was taken after several subsequent compiles, just to be sure.
by Landeel
Dec 10, 2020 18:49
Forum: General
Topic: Compile times
Replies: 23
Views: 1481

Re: Compile times

time fbc32 -gen gas kung04.bas real 0m1,054s user 0m1,078s sys 0m0,085s time fbc32 -gen gcc kung04.bas real 0m14,144s user 0m14,659s sys 0m0,509s Without any optimizations. -gen gcc is still much slower (14 seconds vs. 1 second).
by Landeel
Dec 10, 2020 17:18
Forum: General
Topic: Compile times
Replies: 23
Views: 1481

Re: Compile times

My current project takes 32 seconds to compile with -gen gcc, and only 1 second with -gen gas: time fbc32 -gcc gcc -fpu sse -fpmode fast -O max kung04.bas real 0m30,378s user 0m32,183s sys 0m0,594s time fbc32 -gen gas -fpu sse -fpmode fast -O max kung04.bas real 0m1,070s user 0m1,103s sys 0m0,063s t...

Go to advanced search