Skip to content

V3.0.0#31

Open
math0898 wants to merge 8 commits intomainfrom
v3.0.0
Open

V3.0.0#31
math0898 wants to merge 8 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.
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