Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
raylib-64
#11
(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:

[Image: Screenshot-2023-07-27-041332.png]

I think my work laptop sucks.  Big Grin I should get much better results on my main dev box.
Reply
#12
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....
Reply
#13
(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.
Reply
#14
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.
Reply




Users browsing this thread: 1 Guest(s)