antimine-android icon indicating copy to clipboard operation
antimine-android copied to clipboard

Performance drop when selecting solved numbers

Open melinate opened this issue 4 years ago • 6 comments
trafficstars

Describe the bug Version 15.0.2 was fairly responsive when you selected a solved number to either expose cells with no bombs or mark the remaining cells as bombs. Since upgrading to 15.1.0 it can take >1 second to display the expected change.

To Reproduce Select a 1 that is next to only one unsolved cell.

What control style do you use? Single Tap Flag, Double Tap Open

Expected behavior Bomb is immediately marked so the next number can be selected quickly.

Screenshots NA

Android Version: 12 / Pixel 6 Pro

App Version 15.1.0

melinate avatar Nov 11 '21 17:11 melinate

You mean with "Highlight unsolved numbers" option enabled? There's no significant change between 15.0.2 and 15.1.0, but the Highlight unsolved numbers" option. I will double check.

lucasnlm avatar Nov 11 '21 21:11 lucasnlm

You mean with "Highlight unsolved numbers" option enabled? There's no significant change between 15.0.2 and 15.1.0, but the Highlight unsolved numbers" option. I will double check.

I was coming here to post this same bug. App Version 15.1.0 Android 10 installed from F-droid.

I don't have "Highlight unsolved numbers" option enabled and still have this delay. Basically when you click a revealed number it should either reveal bordering numbers or flag the remaining cells as bombs. This process has ~1 second delay from tapping the number to the flag being placed or other cells being revealed, when previously this was nearly instant. This delay appears to be blocking other interactions too. If you tap multiple cells before antimine flags/reveals the first one, the other cells won't reveal/flag, or sometimes reveal/flag out of order.

Manually flagging individual cells doesn't appear to have this delay, only when tapping revealed numbers to auto flag/reveal is there the delay.

theblackmallard avatar Nov 12 '21 02:11 theblackmallard

I did not enable the new feature "highlight unsolved numbers" either. Just upgraded when 15.1.0 was released on F-Droid.

Thanks for looking into it.

melinate avatar Nov 12 '21 02:11 melinate

I will investigate what's happening. I seems to be happening only with the "Single Tap Flag, Double Tap Open" control style.

lucasnlm avatar Nov 12 '21 20:11 lucasnlm

I think I found the bug. I will release a new version with its fix asap.

lucasnlm avatar Nov 16 '21 17:11 lucasnlm

Thanks for getting this fixed. I just tested the updated version and it appears to be working as expected.

I have been using "tap open, long tap flag" while waiting for the new release. While testing the latest version with "tap open, double tap tab flag" it still feels a bit slower compared to "tap open, long tap flag" for populating flags when single tapping a solved number, but it is so much better now, and completely usable.

Thanks, Nathan

On Tue, Nov 16, 2021 at 9:49 AM Lucas Lima @.***> wrote:

I think I found the bug. I will release a new version with its fix asap.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lucasnlm/antimine-android/issues/347#issuecomment-970516567, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOJUENPB6WBR77BOIFI3ZTUMKKS7ANCNFSM5H27ZTWA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

melinate avatar Nov 29 '21 03:11 melinate