Skip to content

Any reason why examples/ex_blend_bench is 2 times slower on Windows? #1692

@smbape

Description

@smbape

Hello I built and ran ex_blend_bench on Windows en Ubuntu WSL.
The Windows version is 2 times slower than the Linux version and I have no idea why.
Can anyone help me?

Windows

Build

mkdir test
cd test
git clone --depth 1 --branch 5.2.11.0 https://github.com/liballeg/allegro5.git allegro5-src
cmake -S allegro5-src -B allegro5-build -DCMAKE_BUILD_TYPE=Release -DWANT_EXAMPLES=ON
cmake --build allegro5-build --config Release
cmake --install allegro5-build --config Release --prefix allegro5-install

set CWD=%CD%
set "PATH=%CWD%\allegro5-install\bin;%PATH%"
cd /d %CWD%\allegro5-src\examples
"%CWD%\allegro5-build\examples\Release\ex_blend_bench.exe"

Results

Benchmark: Plain blit
Please wait...
Time = 5.064 s, 5263 steps
Plain blit: 1039.3 FPS
Done
Benchmark: Scaled blit
Please wait...
Time = 5.007 s, 5319 steps
Scaled blit: 1062.31 FPS
Done
Benchmark: Rotated blit
Please wait...
Time = 5.158 s, 5494 steps
Rotated blit: 1065.14 FPS
Done

Linux

Build

mkdir test
cd test
git clone --depth 1 --branch 5.2.11.0 https://github.com/liballeg/allegro5.git allegro5-src
cmake -S allegro5-src -B allegro5-build -DCMAKE_BUILD_TYPE=Release -DWANT_EXAMPLES=ON
cmake --build allegro5-build

CWD="$PWD"
cd "$CWD/allegro5-src/examples"
"$CWD/allegro5-build/examples/ex_blend_bench"

Result

Benchmark: Plain blit
Please wait...
Time = 5.10034 s, 11773 steps
Plain blit: 2308.28 FPS
Done
Benchmark: Scaled blit
Please wait...
Time = 5.01109 s, 11425 steps
Scaled blit: 2279.94 FPS
Done
Benchmark: Rotated blit
Please wait...
Time = 5.1503 s, 12201 steps
Rotated blit: 2368.99 FPS
Done

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions