Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit draw updates #202

Merged
merged 15 commits into from
Sep 27, 2023
Prev Previous commit
Next Next commit
remove unusable getter and setter for timeBetweenDraws
graefjk committed Sep 26, 2023
commit 5bf039a4f152aa2d79570e8afbaad14076ef7d1b
Original file line number Diff line number Diff line change
@@ -97,8 +97,7 @@ public Simulation getSimulation() {
}

/**
* Converts all entities to drawables and sends them to the playfield drawer if the last draw has not occurred
* recently.
* Converts all entities to drawables and sends them to the playfield drawer every 32ms.
*/
public void drawEntities() {
this.awaitingEntityDraw = true;
@@ -432,23 +431,4 @@ public void removeDrawablesChangedListener() {
public String toString() {
return this.getClass().getSimpleName() + "@" + Integer.toHexString(this.hashCode());
}

/**
* Get's {@link #timeBetweenDraws timeBetweenDraws}
*
* @return time waiting between draw calls in milliseconds
*/
public long getTimeBetweenDraws() {
return this.timeBetweenDraws;
}

/**
* Set's {@link #timeBetweenDraws timeBetweenDraws}
*
* @param timeBetweenDraws
* time waiting between draw calls in milliseconds
*/
public void setTimeBetweenDraws(long timeBetweenDraws) {
this.timeBetweenDraws = timeBetweenDraws;
}
}