|
|
@@ -100,6 +100,7 @@ struct Window::Internal { |
|
|
|
std::map<std::string, std::shared_ptr<Image>> imageCache; |
|
|
|
|
|
|
|
bool fbDirtyOnSubpixelChange = true; |
|
|
|
int fbCount = 0; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@@ -415,6 +416,7 @@ void Window::step() { |
|
|
|
double lastFrameTime = internal->frameTime; |
|
|
|
internal->frameTime = frameTime; |
|
|
|
internal->lastFrameDuration = frameTime - lastFrameTime; |
|
|
|
internal->fbCount = 0; |
|
|
|
// DEBUG("%.2lf Hz", 1.0 / internal->lastFrameDuration); |
|
|
|
// double t1 = 0.0, t2 = 0.0, t3 = 0.0, t4 = 0.0, t5 = 0.0; |
|
|
|
|
|
|
@@ -759,6 +761,11 @@ bool& Window::fbDirtyOnSubpixelChange() { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int& Window::fbCount() { |
|
|
|
return internal->fbCount; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void init() { |
|
|
|
int err; |
|
|
|
|
|
|
|