RE: raylib-64 - a740g - 07-26-2023
(07-23-2023, 02:07 AM)justsomeguy Wrote: Quote:I was quickly able to overwhelm my system, but I guess that is expected. physac also behaves the same way.
So, do you have an estimate of how many objects you created before it started killing the frame rate? On my laptop I was able to keep 60 FPS up to about 90-100. QB64 default renderer I would get about 80 before the the FPS drop.
I think I might try my hand at the shader demo. If it works I'll PR it.
@justsomeguy So sorry. I did not quite notice you had asked a question here.
So, I tried this on my work laptop (i5-10310U, 4C8T). Here is what I got:
I think my work laptop sucks. I should get much better results on my main dev box.
RE: raylib-64 - justsomeguy - 02-08-2024
It appears that raylib-64 is broken with later version of QB64pe. I confirmed it compiled and ran with v3.8 and v3.9, but v3.10 compiles but does not work and v3.11 wont compile at all.
I'm running Linux Mint 21.2
This is the compile log.
Code: (Select All) g++ -no-pie -w -std=gnu++14 -DFREEGLUT_STATIC -I./internal/c/libqb/include -I./internal/c/parts/core/src/ -I./internal/c/parts/core/glew/include/ -DDEPENDENCY_CONSOLE_ONLY -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE internal/c/libqb.cpp -c -o internal/c/libqb_make_001000000.o
g++ -no-pie -w -std=gnu++14 -DFREEGLUT_STATIC -I./internal/c/libqb/include -I./internal/c/parts/core/src/ -I./internal/c/parts/core/glew/include/ -DDEPENDENCY_CONSOLE_ONLY -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE internal/c/qbx.cpp -c -o internal/c/qbx.o
g++ -O2 -no-pie -w -std=gnu++14 -DFREEGLUT_STATIC -I./internal/c/libqb/include -I./internal/c/parts/core/src/ -I./internal/c/parts/core/glew/include/ -DDEPENDENCY_CONSOLE_ONLY -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE -Wall internal/c/libqb/src/threading.cpp -c -o internal/c/libqb/src/threading.o
g++ -O2 -no-pie -w -std=gnu++14 -DFREEGLUT_STATIC -I./internal/c/libqb/include -I./internal/c/parts/core/src/ -I./internal/c/parts/core/glew/include/ -DDEPENDENCY_CONSOLE_ONLY -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE -Wall internal/c/libqb/src/buffer.cpp -c -o internal/c/libqb/src/buffer.o
g++ -O2 -no-pie -w -std=gnu++14 -DFREEGLUT_STATIC -I./internal/c/libqb/include -I./internal/c/parts/core/src/ -I./internal/c/parts/core/glew/include/ -DDEPENDENCY_CONSOLE_ONLY -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE -Wall internal/c/libqb/src/filepath.cpp -c -o internal/c/libqb/src/filepath.o
In file included from internal/c/qbx.cpp:2:
internal/c/common.h:97:21: error: expected identifier before ‘-’ token
97 | # define QB_TRUE -1
| ^
/mnt/LocalNAS4/LocalNAS/QbasicPrograms/raylib-64/include/raylib.h:19:5: note: in expansion of macro ‘QB_TRUE’
19 | QB_TRUE = -1,
| ^~~~~~~
internal/c/common.h:97:21: error: expected ‘}’ before ‘-’ token
97 | # define QB_TRUE -1
| ^
/mnt/LocalNAS4/LocalNAS/QbasicPrograms/raylib-64/include/raylib.h:19:5: note: in expansion of macro ‘QB_TRUE’
19 | QB_TRUE = -1,
| ^~~~~~~
In file included from internal/c/../temp/regsf.txt:1,
from internal/c/qbx.cpp:1105:
/mnt/LocalNAS4/LocalNAS/QbasicPrograms/raylib-64/include/raylib.h:18:1: note: to match this ‘{’
18 | {
| ^
In file included from internal/c/qbx.cpp:2:
internal/c/common.h:97:21: error: expected unqualified-id before ‘-’ token
97 | # define QB_TRUE -1
| ^
/mnt/LocalNAS4/LocalNAS/QbasicPrograms/raylib-64/include/raylib.h:19:5: note: in expansion of macro ‘QB_TRUE’
19 | QB_TRUE = -1,
| ^~~~~~~
In file included from internal/c/../temp/regsf.txt:1,
from internal/c/qbx.cpp:1105:
/mnt/LocalNAS4/LocalNAS/QbasicPrograms/raylib-64/include/raylib.h:21:1: error: expected declaration before ‘}’ token
21 | };
| ^
In file included from internal/c/qbx.cpp:2:
/mnt/LocalNAS4/LocalNAS/QbasicPrograms/raylib-64/include/raylib.h: In function ‘qb_bool __init_raylib()’:
internal/c/common.h:97:22: error: invalid conversion from ‘int’ to ‘qb_bool’ [-fpermissive]
97 | # define QB_TRUE -1
| ^
| |
| int
/mnt/LocalNAS4/LocalNAS/QbasicPrograms/raylib-64/include/raylib.h:1428:16: note: in expansion of macro ‘QB_TRUE’
1428 | return QB_TRUE;
| ^~~~~~~
internal/c/common.h:96:22: error: invalid conversion from ‘int’ to ‘qb_bool’ [-fpermissive]
96 | # define QB_FALSE 0
| ^
| |
| int
/mnt/LocalNAS4/LocalNAS/QbasicPrograms/raylib-64/include/raylib.h:1446:24: note: in expansion of macro ‘QB_FALSE’
1446 | return QB_FALSE;
| ^~~~~~~~
internal/c/common.h:96:22: error: invalid conversion from ‘int’ to ‘qb_bool’ [-fpermissive]
96 | # define QB_FALSE 0
| ^
| |
| int
/mnt/LocalNAS4/LocalNAS/QbasicPrograms/raylib-64/include/raylib.h:1979:16: note: in expansion of macro ‘QB_FALSE’
1979 | return QB_FALSE;
| ^~~~~~~~
internal/c/common.h:97:22: error: invalid conversion from ‘int’ to ‘qb_bool’ [-fpermissive]
97 | # define QB_TRUE -1
| ^
| |
| int
/mnt/LocalNAS4/LocalNAS/QbasicPrograms/raylib-64/include/raylib.h:1986:12: note: in expansion of macro ‘QB_TRUE’
1986 | return QB_TRUE;
| ^~~~~~~
make: *** [Makefile:388: internal/c/qbx.o] Error 1
make: *** Waiting for unfinished jobs....
RE: raylib-64 - a740g - 02-12-2024
(02-08-2024, 11:43 PM)justsomeguy Wrote: It appears that raylib-64 is broken with later version of QB64pe. I confirmed it compiled and ran with v3.8 and v3.9, but v3.10 compiles but does not work and v3.11 wont compile at all.
I'm running Linux Mint 21.2
This is the compile log.
Code: (Select All) g++ -no-pie -w -std=gnu++14 -DFREEGLUT_STATIC -I./internal/c/libqb/include -I./internal/c/parts/core/src/ -I./internal/c/parts/core/glew/include/ -DDEPENDENCY_CONSOLE_ONLY -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE internal/c/libqb.cpp -c -o internal/c/libqb_make_001000000.o
g++ -no-pie -w -std=gnu++14 -DFREEGLUT_STATIC -I./internal/c/libqb/include -I./internal/c/parts/core/src/ -I./internal/c/parts/core/glew/include/ -DDEPENDENCY_CONSOLE_ONLY -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE internal/c/qbx.cpp -c -o internal/c/qbx.o
g++ -O2 -no-pie -w -std=gnu++14 -DFREEGLUT_STATIC -I./internal/c/libqb/include -I./internal/c/parts/core/src/ -I./internal/c/parts/core/glew/include/ -DDEPENDENCY_CONSOLE_ONLY -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE -Wall internal/c/libqb/src/threading.cpp -c -o internal/c/libqb/src/threading.o
g++ -O2 -no-pie -w -std=gnu++14 -DFREEGLUT_STATIC -I./internal/c/libqb/include -I./internal/c/parts/core/src/ -I./internal/c/parts/core/glew/include/ -DDEPENDENCY_CONSOLE_ONLY -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE -Wall internal/c/libqb/src/buffer.cpp -c -o internal/c/libqb/src/buffer.o
g++ -O2 -no-pie -w -std=gnu++14 -DFREEGLUT_STATIC -I./internal/c/libqb/include -I./internal/c/parts/core/src/ -I./internal/c/parts/core/glew/include/ -DDEPENDENCY_CONSOLE_ONLY -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE -Wall internal/c/libqb/src/filepath.cpp -c -o internal/c/libqb/src/filepath.o
In file included from internal/c/qbx.cpp:2:
internal/c/common.h:97:21: error: expected identifier before ‘-’ token
97 | # define QB_TRUE -1
| ^
/mnt/LocalNAS4/LocalNAS/QbasicPrograms/raylib-64/include/raylib.h:19:5: note: in expansion of macro ‘QB_TRUE’
19 | QB_TRUE = -1,
| ^~~~~~~
internal/c/common.h:97:21: error: expected ‘}’ before ‘-’ token
97 | # define QB_TRUE -1
| ^
/mnt/LocalNAS4/LocalNAS/QbasicPrograms/raylib-64/include/raylib.h:19:5: note: in expansion of macro ‘QB_TRUE’
19 | QB_TRUE = -1,
| ^~~~~~~
In file included from internal/c/../temp/regsf.txt:1,
from internal/c/qbx.cpp:1105:
/mnt/LocalNAS4/LocalNAS/QbasicPrograms/raylib-64/include/raylib.h:18:1: note: to match this ‘{’
18 | {
| ^
In file included from internal/c/qbx.cpp:2:
internal/c/common.h:97:21: error: expected unqualified-id before ‘-’ token
97 | # define QB_TRUE -1
| ^
/mnt/LocalNAS4/LocalNAS/QbasicPrograms/raylib-64/include/raylib.h:19:5: note: in expansion of macro ‘QB_TRUE’
19 | QB_TRUE = -1,
| ^~~~~~~
In file included from internal/c/../temp/regsf.txt:1,
from internal/c/qbx.cpp:1105:
/mnt/LocalNAS4/LocalNAS/QbasicPrograms/raylib-64/include/raylib.h:21:1: error: expected declaration before ‘}’ token
21 | };
| ^
In file included from internal/c/qbx.cpp:2:
/mnt/LocalNAS4/LocalNAS/QbasicPrograms/raylib-64/include/raylib.h: In function ‘qb_bool __init_raylib()’:
internal/c/common.h:97:22: error: invalid conversion from ‘int’ to ‘qb_bool’ [-fpermissive]
97 | # define QB_TRUE -1
| ^
| |
| int
/mnt/LocalNAS4/LocalNAS/QbasicPrograms/raylib-64/include/raylib.h:1428:16: note: in expansion of macro ‘QB_TRUE’
1428 | return QB_TRUE;
| ^~~~~~~
internal/c/common.h:96:22: error: invalid conversion from ‘int’ to ‘qb_bool’ [-fpermissive]
96 | # define QB_FALSE 0
| ^
| |
| int
/mnt/LocalNAS4/LocalNAS/QbasicPrograms/raylib-64/include/raylib.h:1446:24: note: in expansion of macro ‘QB_FALSE’
1446 | return QB_FALSE;
| ^~~~~~~~
internal/c/common.h:96:22: error: invalid conversion from ‘int’ to ‘qb_bool’ [-fpermissive]
96 | # define QB_FALSE 0
| ^
| |
| int
/mnt/LocalNAS4/LocalNAS/QbasicPrograms/raylib-64/include/raylib.h:1979:16: note: in expansion of macro ‘QB_FALSE’
1979 | return QB_FALSE;
| ^~~~~~~~
internal/c/common.h:97:22: error: invalid conversion from ‘int’ to ‘qb_bool’ [-fpermissive]
97 | # define QB_TRUE -1
| ^
| |
| int
/mnt/LocalNAS4/LocalNAS/QbasicPrograms/raylib-64/include/raylib.h:1986:12: note: in expansion of macro ‘QB_TRUE’
1986 | return QB_TRUE;
| ^~~~~~~
make: *** [Makefile:388: internal/c/qbx.o] Error 1
make: *** Waiting for unfinished jobs....
I fixed it sometime back in Fix compile error on QB64-PE v3.11 · a740g/raylib-64@5cb1dca (github.com).
Update and sync your repo to the latest.
RE: raylib-64 - a740g - 04-01-2024
Updated raylib for QB64-PE to raylib v5.0!
Many thanks to @DSMan195276 for his fantastic qb64pe-json library. Without it, the v5.0 update would not have been possible.
Download the latest version from the first post.
RE: raylib-64 - TerryRitchie - 05-30-2024
This is an incredible library! Thank you for taking the time to do this. I've always meant to get some time playing with this. Now that I'm updating my libraries I finally have some. This is awesome!
RE: raylib-64 - a740g - 05-31-2024
(05-30-2024, 07:48 PM)TerryRitchie Wrote: This is an incredible library! Thank you for taking the time to do this. I've always meant to get some time playing with this. Now that I'm updating my libraries I finally have some. This is awesome!
Thanks Terry. Glad you liked it.
The raylib library is quite popular and widely used by indie game devs.
RE: raylib-64 - a740g - 06-09-2024
The QB64-PE bindings for raymath are now complete. Sync your git repository to the latest version, or if you're not using git, download the full source .zip file using the link in the initial post.
RE: raylib-64 - TerryRitchie - 06-10-2024
(06-09-2024, 09:31 PM)a740g Wrote: The QB64-PE bindings for raymath are now complete. Sync your git repository to the latest version, or if you're not using git, download the full source .zip file using the link in the initial post. Just keeps getting better. Thank you.
|