-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Submit tile marker metronome #7214
base: master
Are you sure you want to change the base?
Conversation
New plugin |
These aren't blockers but you should want to change them anyway: This is going to cause parity issues where some groups don't roll over when they should if gcd(100, tickCount) is 1. If you were concerned about the variable becoming too large, it just won't. You'd need like 40 years of gametime to overflow the variable:
Your Marking currentTick as transient does nothing, To avoid your menu entry from looking identical to the core options, you should change your "Mark" and "Unmark" to something like "Tick-Mark" or literally anything else that isn't "Mark". This doesn't need to be atomic, there's no multithreading going on: |
Thanks for the feedback, Ive made changes according to the comments. Except for
I'm using an |
Don't do Swing work on the client thread, use SwingUtilities#invokeLater for e.g. https://github.com/RenaudBernon/tile-marker-metronome/blob/5f01834ffce27271d91c5ceaf80edde8da4f6d7b/src/main/java/com/tilemarkermetronome/TileMarkerMetronomePlugin.java#L140 Downgrade this and other frequent log.info calls to log.debug instead https://github.com/RenaudBernon/tile-marker-metronome/blob/5f01834ffce27271d91c5ceaf80edde8da4f6d7b/src/main/java/com/tilemarkermetronome/TileMarkerMetronomeGroup.java#L73
|
Resubmit of #6998
This plugin combines Tile markers with the visual metronome.
Marked tiles change color every X ticks.
In the last MR the comment was made that since I was only keeping track of ticks for loaded tiles, this would effectively sync the metronome with some boss encounters, making mechanics that happen after X ticks trivial.
To combat this I am now keeping a global tick counter. This hopefully alleviates that concern.