Search found 760 matches
- Dec 31, 2020 13:31
- Forum: Game Dev
- Topic: Kung Fu Er San (another WIP)
- Replies: 0
- Views: 265
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=...
- Dec 29, 2020 12:30
- Forum: Linux
- Topic: Why do graphics programs require libtinfo/ncurses?
- Replies: 9
- Views: 1226
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.
Maybe the "-s gui" flag could be used on Linux to eliminate the libtinfo dependency.
- Dec 11, 2020 12:46
- Forum: General
- Topic: Compile times
- Replies: 23
- Views: 943
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 ...
- Dec 10, 2020 19:24
- Forum: General
- Topic: Compile times
- Replies: 23
- Views: 943
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.
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.
- Dec 10, 2020 18:49
- Forum: General
- Topic: Compile times
- Replies: 23
- Views: 943
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).
- Dec 10, 2020 17:18
- Forum: General
- Topic: Compile times
- Replies: 23
- Views: 943
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...
- Dec 09, 2020 16:49
- Forum: General
- Topic: UDT initializer : Invalid data types
- Replies: 5
- Views: 237
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...
- Dec 09, 2020 14:33
- Forum: General
- Topic: UDT initializer : Invalid data types
- Replies: 5
- Views: 237
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...
- Dec 09, 2020 13:38
- Forum: General
- Topic: UDT initializer : Invalid data types
- Replies: 5
- Views: 237
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...
- Dec 07, 2020 21:21
- Forum: Linux
- Topic: Runtime error: libtinfo.so.5 not found
- Replies: 10
- Views: 737
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....
- Dec 06, 2020 12:16
- Forum: Linux
- Topic: Runtime error: libtinfo.so.5 not found
- Replies: 10
- Views: 737
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.
- Nov 25, 2020 18:30
- Forum: Linux
- Topic: (L)Ubuntu Focal Fossa (20.04) and libtinfo.so.5
- Replies: 22
- Views: 3945
Re: (L)Ubuntu Focal Fossa (20.04) and libtinfo.so.5
The distributed compiler itself needs 'libtinfo.so.5', so "sudo apt-get install libtinfo5". If you want to prevent this from happening with your compiled programs, copy "libtinfo.a" to "/usr/local/lib/freebasic/linux-x86_64", and it will be statically linked. If you're ...
- Oct 30, 2020 19:50
- Forum: Tips and Tricks
- Topic: quadput V2.0 (from Dr_D)
- Replies: 2
- Views: 701
Re: quadput V2.0 (from Dr_D)
Hey Joshy and Dr_D, this is pretty good.
A software renderer would come handy in my projects as an alternative to OpenGL.
Also, I could use this for better collision detection.
Mind if I borrow it? ;)
A software renderer would come handy in my projects as an alternative to OpenGL.
Also, I could use this for better collision detection.
Mind if I borrow it? ;)
- Oct 29, 2020 10:45
- Forum: Community Discussion
- Topic: Wetspot compiled to javascript
- Replies: 23
- Views: 5590
Re: Wetspot compiled to javascript
I'm curious. What does Cordova have to do with FB and Emscripten? Looks to me like it's simply another Javascript hybrid app development platform. Cordova can turn HTML/javascript into an Android app. So we could make Android apps using FreeBASIC. Just that. Sure it's not the best path, as it's bet...
- Oct 22, 2020 13:56
- Forum: Linux
- Topic: ScreenInfo returns the wrong refresh rate
- Replies: 2
- Views: 164
Re: ScreenInfo returns the wrong refresh rate
user@landeel-ht3000:~$ xrandr Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384 DVI-I-0 disconnected primary (normal left inverted right x axis y axis) DVI-I-1 disconnected (normal left inverted right x axis y axis) HDMI-0 disconnected (normal left inverted right x axis y axis) HD...