Skip to content

Improve latency tracking and chapter detection#13

Merged
mleem97 merged 4 commits into
mleem97/issue10from
codex/fix-bot-reaction-time-issues
Aug 10, 2025
Merged

Improve latency tracking and chapter detection#13
mleem97 merged 4 commits into
mleem97/issue10from
codex/fix-bot-reaction-time-issues

Conversation

@mleem97
Copy link
Copy Markdown
Owner

@mleem97 mleem97 commented Aug 10, 2025

Summary

  • Reduce default action delay to 50ms
  • Add OCR-based fallback to locate chapter headers, fixing Chapter 5 detection
  • Expose last screenshot-to-action latency for UI display

Testing

  • python -m py_compile $(git ls-files '*.py')

https://chatgpt.com/codex/tasks/task_e_6897f5b70f48832fa0b30fff1bcc7695

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the Rush Royale bot's responsiveness and chapter detection reliability. The changes reduce action latency by decreasing the default delay between actions and add OCR-based fallback for detecting chapter headers when template matching fails.

  • Reduced default action delay from 100ms to 50ms for better responsiveness
  • Added OCR-based fallback to locate chapter headers, specifically addressing Chapter 5 detection issues
  • Enhanced latency tracking by exposing the last screenshot-to-action timing for real-time UI monitoring

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
Src/ocr_utils.py Adds new find_chapter_headers() function for OCR-based chapter detection
Src/latency.py Adds tracking and getter for last screenshot-to-action latency measurement
Src/gui.py Updates latency display to include the most recent timing measurement
Src/bot_core.py Reduces default sleep delay and integrates OCR fallback for chapter detection

Comment thread Src/ocr_utils.py Outdated
Comment thread Src/ocr_utils.py Outdated
Comment thread Src/bot_core.py
@mleem97 mleem97 marked this pull request as ready for review August 10, 2025 01:42
mleem97 and others added 3 commits August 10, 2025 03:46
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mleem97 mleem97 merged commit 99a393f into mleem97/issue10 Aug 10, 2025
@mleem97 mleem97 deleted the codex/fix-bot-reaction-time-issues branch August 10, 2025 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants