Skip to content

V3.0.0#31

Merged
math0898 merged 9 commits intomainfrom
v3.0.0
Apr 13, 2026
Merged

V3.0.0#31
math0898 merged 9 commits intomainfrom
v3.0.0

Conversation

@math0898
Copy link
Copy Markdown
Owner

Resolves #30.

@math0898 math0898 self-assigned this Jan 16, 2023
@qlty-cloud-legacy
Copy link
Copy Markdown

qlty-cloud-legacy Bot commented Jan 16, 2023

Code Climate has analyzed commit 8734d84 and detected 8 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 8

The test coverage on the diff in this pull request is 36.2% (50% is the threshold).

This pull request will bring the total coverage in the repository to 40.5% (7.0% change).

View more on Code Climate.

* Algorithm Created
- Designed and partially tested an algorithm which more closely hits target frame rates.
- Optimized imports.
- Weakened GraphicsPanel object in GraphicsThread to GraphicsPanelInterface.
- Added repaint() to GraphicsPanelInterface. This is typically implemented by Component. [API CHANGE!!!]
- Created GraphicsThreadTest.
- Started writing test for run().

* Optimizations
- Slightly modified algorithm which did result in an 'overperformance' error of 1.5%. After removing some 'unused code' now at roughly 9%.
- Created parameterized test for running at requested frame rate.
- Updated Gradle wrapper to Gradle 7.5.

* Mostly Done
- Shortened test durations.
- Made tests automatically pause with an easy way to re-enable them.
- 'Normalized' the 'remainingMillis' count when determining how long to wait by subtracting the start time.
- Added a simple report result message so tests can still be useful.

* FrameRate
- Added setters and getters for the current target frame rate.

* - Extracted commonalities between SugaThread implementing classes to AbstractThread.

* - Wrote tests for GameLogicThread.

* - Attempted to fix workflow.

* - Finished fixing merge differences.
@math0898
Copy link
Copy Markdown
Owner Author

Building and testing worked on local system. Pushing this request through so progress can begin on v4.0.0 as that will significantly change distribution anyways.

@math0898 math0898 merged commit 2b0c4aa into main Apr 13, 2026
1 of 3 checks passed
@math0898 math0898 deleted the v3.0.0 branch April 13, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GameEngine Singleton

1 participant