mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 23:14:19 +00:00
Display: Removed display_impl.update() from isCloseRequested(), isVisible(), isDirty() and isActive() since it can be an expensive call on at least linux. Display.update() is now required to be called to update the internal state.
This commit is contained in:
parent
f6152a134a
commit
e9a3b7a556
1 changed files with 0 additions and 4 deletions
|
|
@ -531,7 +531,6 @@ public final class Display {
|
|||
synchronized (GlobalLock.lock) {
|
||||
if (!isCreated())
|
||||
throw new IllegalStateException("Cannot determine close requested state of uncreated window");
|
||||
display_impl.update();
|
||||
return display_impl.isCloseRequested();
|
||||
}
|
||||
}
|
||||
|
|
@ -543,7 +542,6 @@ public final class Display {
|
|||
synchronized (GlobalLock.lock) {
|
||||
if (!isCreated())
|
||||
throw new IllegalStateException("Cannot determine minimized state of uncreated window");
|
||||
display_impl.update();
|
||||
return display_impl.isVisible();
|
||||
}
|
||||
}
|
||||
|
|
@ -555,7 +553,6 @@ public final class Display {
|
|||
synchronized (GlobalLock.lock) {
|
||||
if (!isCreated())
|
||||
throw new IllegalStateException("Cannot determine focused state of uncreated window");
|
||||
display_impl.update();
|
||||
return display_impl.isActive();
|
||||
}
|
||||
}
|
||||
|
|
@ -574,7 +571,6 @@ public final class Display {
|
|||
synchronized (GlobalLock.lock) {
|
||||
if (!isCreated())
|
||||
throw new IllegalStateException("Cannot determine dirty state of uncreated window");
|
||||
display_impl.update();
|
||||
return display_impl.isDirty();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue