Skip to content

jibejb/Oppai_benchmark_c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oppai_benchmark_c

Oppai_benchmark rewrite in C.

You can watch the video "simple.mp4" to see how it works.

Diffrent complier has diffrent score. Change the optimizition level, the score also change.

Bugs:

on linux NVIDIA driver's(not nouveau) OpenGL has bugs. F**k you NVIDIA!

Usage:

Dependences: ISO C99 OpenGL(3.3 or later) glfw3(libglfw-dev/glfw) ncurses(libncurses-dev/ncurses)/pdcurses(on Windows) pthread

Android

OpenGL and glfw are not needed on Android. Does not support GUI on Android. You can use termux, it is similar to the Linux terminal.

Windows

Install visualstudio and vcpkg https://github.com/microsoft/vcpkg

git clone https://github.com/jibejb/Oppai_benchmark_c.git
vcpkg install pthreads:x64-windows-static
vcpkg install glfw3:x64-windows-static
vcpkg install pdcurses:x64-windows-static

cd Oppai_benchmark_c
mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=[your path]/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static
cmake --build . --config Release
cd .\Release
.\oppai_benchmark -h

Linux

git clone https://github.com/jibejb/Oppai_benchmark_c.git
cd Oppai_benchmark_c
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make
./oppai_benchmark -h

This may works on other Unix like systems.

Thanks:

Oppai_benchmark: https://github.com/PenguinCabinet/Oppai_benchmark

thpool: https://github.com/Pithikos/C-Thread-Pool

Linux C编程一站式学习: https://akaedu.github.io/book/

ChatGPT: https://chatgpt.com/

LearnOpenGL CN : https://learnopengl-cn.github.io/

......