Bring in the gnu omni font for text, and rewrite my stats code to use c++ and then use that to calc FPS stats for an FPS display on the left. Debug build gets about 48, release gets about 500fps. Amit's code will probably do even better.
This commit is contained in:
parent
e3e0f0a322
commit
cf9682ed70
8 changed files with 85 additions and 95 deletions
|
@ -5,6 +5,7 @@ cc = meson.get_compiler('cpp')
|
|||
|
||||
catch2 = dependency('catch2-with-main')
|
||||
fmt = dependency('fmt')
|
||||
freetype = dependency('freetype2')
|
||||
json = dependency('nlohmann_json')
|
||||
opengl32 = cc.find_library('opengl32', required: true)
|
||||
winmm = cc.find_library('winmm', required: true)
|
||||
|
@ -17,7 +18,7 @@ sfml_system = dependency('sfml_system')
|
|||
sfml_window = dependency('sfml_window')
|
||||
|
||||
dependencies = [
|
||||
fmt, json, opengl32,
|
||||
fmt, json, opengl32, freetype,
|
||||
winmm, gdi32, sfml_audio, sfml_graphics,
|
||||
sfml_main, sfml_network, sfml_system,
|
||||
sfml_window
|
||||
|
@ -36,6 +37,7 @@ executable('zedcaster', [
|
|||
'config.cpp',
|
||||
'texture.cpp',
|
||||
'raycaster.cpp',
|
||||
'stats.cpp',
|
||||
'main.cpp'
|
||||
],
|
||||
dependencies: dependencies)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue