TIC-80 icon indicating copy to clipboard operation
TIC-80 copied to clipboard

Builded version lag

Open RealAquilus opened this issue 1 year ago • 4 comments

Hi i tried to compile the repo myself, i didn't change anything neither and the build has been done with the stock CMakeList (no BUILD_PRO or other stuff changed, really the basic settings). But the compiled version is considerably more "laggy" than the pre-compiled version. Am i missing something?

RealAquilus avatar Nov 07 '23 13:11 RealAquilus

Try to add -DCMAKE_BUILD_TYPE=MinSizeRel to build an optimized binary.

nesbox avatar Nov 07 '23 13:11 nesbox

tried but didn't work, seems BUILD_SDLGPU fixed the issue, but i don't know if it has some implication having it on or not

RealAquilus avatar Nov 07 '23 13:11 RealAquilus

tried but didn't work, seems BUILD_SDLGPU fixed the issue, but i don't know if it has some implication having it on or not

I faced the same issue as you. Could you describe what command you used to build the project? I tried to run it with the flags: -DBUILD_PRO=On -DCMAKE_BUILD_TYPE=MinSizeRel -BUILD_SDLGPU=On but I am faced with the following error:

-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
-- Performing Test CHECK_CPU_ARCHITECTURE_X64
-- Performing Test CHECK_CPU_ARCHITECTURE_X64 - Success
CMake Error at vendor/sdl2/CMakeLists.txt:378 (message):
    SDL_SHARED and SDL_STATIC cannot both be disabled
                                                                                                                                                                                                                                                                                                                 -- Configuring incomplete, errors occurred! 

If anybody could guide me on creating an optimised binary I'd be grateful.

subtra3t avatar Nov 09 '23 05:11 subtra3t

You can find all the commands we use to build here https://github.com/nesbox/TIC-80/blob/main/.github/workflows/build.yml

nesbox avatar Nov 11 '23 10:11 nesbox