time in shaders

This commit is contained in:
Issac332 2026-06-10 20:27:57 +03:00
parent 30b3136398
commit 1365577393
8 changed files with 5 additions and 9 deletions

View file

@ -216,7 +216,7 @@ static void setGamePathInRegistry() {
}
int main(int argc, char *argv[]){
SecurityManagerInit();
starttime = boost::chrono::high_resolution_clock::now();
startTime = boost::chrono::high_resolution_clock::now();
loadLanguageMetadata(); //there will be a segfault on fclose if I don't move it here
SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0");

View file

@ -34,6 +34,7 @@
#include "etc-internal.h"
#include "shader.h"
#include "glstate.h"
#include "sunshine.h"
#include <sigc++/connection.h>

View file

@ -36,8 +36,6 @@ struct PlanePrivate;
class Plane : public ViewportElement, public Disposable{
public:
boost::chrono::high_resolution_clock::time_point startTime = boost::chrono::high_resolution_clock::now();
Plane(Viewport *viewport = 0);
~Plane();

View file

@ -35,6 +35,7 @@
#include "quadarray.h"
#include "config.h"
#include "debugwriter.h"
#include "sunshine.h"
#include <math.h>

View file

@ -40,8 +40,6 @@ struct SpritePrivate;
class Sprite : public ViewportElement, public Flashable, public Disposable{
public:
boost::chrono::high_resolution_clock::time_point startTime = boost::chrono::high_resolution_clock::now();
Sprite(Viewport *viewport = 0);
~Sprite();

View file

@ -1,4 +1,4 @@
#include <boost/chrono.hpp>
//помойка ебаная
inline boost::chrono::high_resolution_clock::time_point starttime;
inline boost::chrono::high_resolution_clock::time_point startTime;

View file

@ -38,6 +38,7 @@
#include "vertex.h"
#include "tileatlas.h"
#include "tilemap-common.h"
#include "sunshine.h"
#include <sigc++/connection.h>
#include <boost/chrono.hpp>
@ -222,8 +223,6 @@ struct ZLayer : public ViewportElement {
};
struct TilemapPrivate {
boost::chrono::high_resolution_clock::time_point startTime = boost::chrono::high_resolution_clock::now();
Viewport *viewport;
Bitmap *autotiles[autotileCount];

View file

@ -25,7 +25,6 @@
#include "disposable.h"
#include "util.h"
#include <boost/chrono.hpp>
class Viewport;
class Bitmap;