v0.1.1
v0.1.1 - Improved Buffer Management
This release updates PyImageCUDA Studio to use the improved buffer sizing system from PyImageCUDA 0.0.10, providing more flexible memory management and better buffer reuse.
Changes
Updated Buffer System
- Updated to PyImageCUDA 0.0.10 buffer capacity system
- Buffers now use pixel-based capacity instead of fixed dimensions
- Improved buffer reuse across different aspect ratios
Internal Improvements
- Simplified buffer management code in
ensure_buffer()andresize_buffers() - More robust dimension updates using
Image.resize() - Better handling of buffer capacity checks
Technical Details
The buffer management system now tracks total pixel capacity rather than individual width/height limits. This allows the same buffer to be reused for different aspect ratios as long as the total pixel count fits within capacity.
Example:
# Same buffer can handle different aspect ratios
buffer = Image(1920, 1080) # 2,073,600 pixels capacity
buffer.resize(3840, 540) # Landscape (same pixel count)
buffer.resize(2160, 960) # Different aspect ratio
buffer.resize(1080, 1920) # PortraitRequirements
- PyImageCUDA >= 0.0.10
Migration
No changes required for existing projects. All .pics files remain fully compatible.