Skip to content

Conversation

@rafalohaki
Copy link

  • Add updateRequested flag to gate heavy update work
  • Implement computeUpdateRegionLimit to dynamically limit update regions
  • Replace direct draw calls with requestUpdate where appropriate
  • Fix getVisibleTiles to return actual visible regions count
  • Add bin/ to gitignore for build artifacts

- Add updateRequested flag to gate heavy update work
- Implement computeUpdateRegionLimit to dynamically limit update regions
- Replace direct draw calls with requestUpdate where appropriate
- Fix getVisibleTiles to return actual visible regions count
- Add bin/ to gitignore for build artifacts
Introduce IScriptArea interface and FallbackScriptArea implementation to provide a graceful fallback when RichTextFX is unavailable or incompatible. Modify CodeEditor to dynamically choose between GroovyCodeArea and FallbackScriptArea based on runtime compatibility. Also update .gitignore to exclude notes directory.
…verlay

Dynamically set thread counts for parseExecutor and overlayCacheLoaders based on available processors and global process threads configuration to improve resource utilization and performance
- Replace ImageIO with pngj for faster PNG saving with lower compression
- Implement batch writes for overlay cache to reduce LevelDB I/O overhead
- Tune LevelDB options for better overlay cache performance
- Use virtual threads for I/O-bound overlay cache loading
- Add proper synchronization for task draining in JobHandler
- Improve concurrency configuration for parser threads
- Add missing default cases in switch statements
Clean up code by removing unused imports to improve code maintainability and reduce clutter
…heck

Fix the scaling logic for corrupted chunk overlay by using proper nearest-neighbor downscaling. Also add null check for waterHeights array to prevent potential NPE.
- Upgrade Gradle wrapper to version 9.1.0 for latest features and improvements
- Add Guava library (v33.4.8-jre) as a new dependency for utility functions
- Configure Gradle Versions Plugin to reject unstable dependency candidates
refactor(cli): replace deprecated HelpFormatter with builder pattern
- Use assignment operator for group property
- Standardize maven repository URL syntax with assignment operators
- Improve indentation consistency in repositories block
} else if (regionFile.exists()) {
if (cacheImage.exists()) {
// load cached image asynchronously to keep UI responsive
image = new Image(cacheImage.toURI().toString(), true);
Copy link
Owner

Choose a reason for hiding this comment

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

This may cause Image#getPixelReader() to return null, because it checks if the image is fully loaded and returns null if its progress is < 1.0 (see JavaDoc of getPixelReader())

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.

2 participants