EEVEE-Next: Skip bake if there's not enough VRAM #113509

Merged
Miguel Pozo merged 4 commits from pragma37/blender:pull-eevee-bake-out-of-mem into main 2023-10-18 18:49:30 +02:00
Member
  • Skip the bake if there's not enough GPU memory to allocate all the required resources.
  • Print bake messages to the command line.
* Skip the bake if there's not enough GPU memory to allocate all the required resources. * Print bake messages to the command line.
Miguel Pozo added the
Interest
EEVEE
Module
EEVEE & Viewport
labels 2023-10-10 18:38:33 +02:00
Miguel Pozo added 2 commits 2023-10-10 18:38:47 +02:00
Miguel Pozo requested review from Clément Foucault 2023-10-10 18:40:19 +02:00
Clément Foucault requested changes 2023-10-10 19:27:25 +02:00
@ -951,3 +952,3 @@
}
/* TODO(fclem): Check for GL limit and abort if the surfel cache doesn't fit the GPU memory. */
if (capture_info_buf_.surfel_len > surfels_buf_.size() && GPU_mem_stats_supported()) {

While this is nice to check when it is supported, we should also check GL_MAX_SHADER_STORAGE_BLOCK_SIZE in any cases.

While this is nice to check when it is supported, we should also check `GL_MAX_SHADER_STORAGE_BLOCK_SIZE` in any cases.
Author
Member

There was no way to query that info, so I made a separate commit to add a GPU_max_storage_buffer_size function.

There was no way to query that info, so I made a separate commit to add a `GPU_max_storage_buffer_size` function.

Note: Should we maybe check before allocating the grid textures too?

Yes. Allocating the grid texture can return a null texture it it doesn't fit the implementation limits.

> Note: Should we maybe check before allocating the grid textures too? Yes. Allocating the grid texture can return a null texture it it doesn't fit the implementation limits.
Miguel Pozo added 2 commits 2023-10-10 20:25:06 +02:00
Miguel Pozo added a new dependency 2023-10-10 20:37:28 +02:00
Miguel Pozo removed a dependency 2023-10-10 20:37:37 +02:00
Miguel Pozo added a new dependency 2023-10-10 20:37:44 +02:00
Clément Foucault approved these changes 2023-10-18 18:03:53 +02:00
Miguel Pozo merged commit fc1ee65104 into main 2023-10-18 18:49:30 +02:00
Miguel Pozo deleted branch pull-eevee-bake-out-of-mem 2023-10-18 18:49:31 +02:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: blender/blender#113509
No description provided.