nondeterministic / eureka

Old-school CRPG engine, editor and game
GNU General Public License v3.0
44 stars 3 forks source link

Game console rendering errors #2

Open clort81 opened 2 years ago

clort81 commented 2 years ago

I see problems with scrolling game-console in today's build. System: libsdl2-2.0-0 Version: 2.0.16+dfsg1-5 aarch64, gcc-11

eureka_sdl

clort81 commented 2 years ago

Possible there's some unsafe math being used to scroll that console window.

nondeterministic commented 2 years ago

Thanks for pointing this out. I'm just starting to catch up with github issues again... Sorry. Will write a bit more when I have had a chance to look at what's going on. But unsafe math is a good guess. :-)

clort81 commented 2 years ago

I tested a fresh build with flags="-O2 -march=armv8-a+crypto+crc+aes+sha2" The same breakage occurred in the text window. Here was console output.

INFO: SDLWindow::init() called.
INFO: sdlwindow.cc: Created SDL window 1024x768
INFO: sdlwindow.cc: SDL renderer supports accelerated rendering.
Failed to create secure directory (/run/user/1001/pulse): No such file or directory
INFO: sdlwindow.cc: Created arena texture inside with dimensions w: 612, h: 740, inside SDL-Window with dimensions: w: 1024, h: 768
INFO: icons.cc: Assigned/reserved how many icons props? 1500.
INFO: icons.cc: Assigned/reserved how many icons props? 441.
INFO: world.cc: Loading spells...
INFO: icons.cc: Converted and stored 1500 icons.
INFO: icons.cc: Converted and stored 420 icons

If there are some things i should try toggling/changing to help narrow it down, I'd be happy to do it.