Search found 764 matches

by Landeel
Jun 12, 2021 15:06
Forum: Community Discussion
Topic: FreeBASIC 1.08.0 Release Discussion (June 2021)
Replies: 55
Views: 2188

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: 55
Views: 2188

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: 55
Views: 2188

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: 167

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: 704

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: 1748

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: 1410

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: 1410

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: 1410

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: 1410

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...
by Landeel
Dec 09, 2020 16:49
Forum: General
Topic: UDT initializer : Invalid data types
Replies: 5
Views: 362

Re: UDT initializer : Invalid data types

Thanks, paul doe! I have added a constructor without parameters, so it will also work with redim: union colortype bgra as uinteger<32> type b as ubyte g as ubyte r as ubyte a as ubyte end type declare constructor(byval bgra as uinteger<32>=rgba(255,255,255,255)) declare constructor(as ubyte, as ubyt...
by Landeel
Dec 09, 2020 14:33
Forum: General
Topic: UDT initializer : Invalid data types
Replies: 5
Views: 362

Re: UDT initializer : Invalid data types

Hey Joshy, you gave me a great idea: union colortype bgra as uinteger<32> type b as ubyte g as ubyte r as ubyte a as ubyte end type declare constructor(byval bgra as uinteger<32>=rgba(255,255,255,255)) end union constructor colortype(byval bgra as uinteger<32>) this.bgra=bgra end constructor type my...
by Landeel
Dec 09, 2020 13:38
Forum: General
Topic: UDT initializer : Invalid data types
Replies: 5
Views: 362

UDT initializer : Invalid data types

union colortype bgra as uinteger<32> type b as ubyte g as ubyte r as ubyte a as ubyte end type end union type mytype clr as colortype=rgba(255,255,255,255) end type This code is obviously wrong, but it used to compile and work. With current git fbc, it gives me a: c.bas(12) error 24: Invalid data t...
by Landeel
Dec 07, 2020 21:21
Forum: Linux
Topic: Runtime error: libtinfo.so.5 not found
Replies: 10
Views: 1163

Re: Runtime error: libtinfo.so.5 not found

Do I just put them in the same directory as the executable and the program will read them from there instead of looking them up in the OS? No, that doesn't work on Linux. You would need a script to export 'LD_LIBRARY_PATH' and run your program. Not a very elegant solution, but many programs use it....
by Landeel
Dec 06, 2020 12:16
Forum: Linux
Topic: Runtime error: libtinfo.so.5 not found
Replies: 10
Views: 1163

Re: Runtime error: libtinfo.so.5 not found

I just copy "libtinfo.a" to "/usr/local/lib/freebasic/linux-x86_64", and it gets statically linked.

Go to advanced search