Make it so that DNEBUG is forced on release build, and that the UI stats counter will show that this is a debug build or not via NDEBUG.
This commit is contained in:
parent
cf9682ed70
commit
53a151511e
4 changed files with 11 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
|||
#include "raycaster.hpp"
|
||||
#include "texture.hpp"
|
||||
#include <algorithm>
|
||||
#include "constants.hpp"
|
||||
|
||||
using namespace fmt;
|
||||
using std::make_unique;
|
||||
|
@ -37,7 +38,7 @@ Raycaster::Raycaster(sf::RenderWindow& window, Matrix &map, int width, int heigh
|
|||
spriteDistance($textures.NUM_SPRITES),
|
||||
ZBuffer(width)
|
||||
{
|
||||
// $window.setVerticalSyncEnabled(true);
|
||||
$window.setVerticalSyncEnabled(VSYNC);
|
||||
$view_sprite.setPosition({0, 0});
|
||||
$pixels = make_unique<RGBA[]>($width * $height);
|
||||
$textures.load_textures();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue