AV-sync lags with default cube #41021

Closed
opened 2014-07-10 17:56:18 +02:00 by Michael Glen Montague · 15 comments

System Information
Operating System: Windows 8.1, 64-bit
Graphics Card: ASUS GeForce GTX 780 DirectCU II OC 3GB GDDR5
Processor: Intel Core i7-3770 @ 3.40 GHz
Memory: 12.0 GB DDR3

Blender Version
Broken: 2.71
Worked: 2.70a

Short description of error
Using AV-sync with default cube in 2.71 indicates a consistent 24 fps, but actually plays at ~4 fps.

Exact steps for others to reproduce the error
Open 2.71 startup file, turn on AV-sync and playback animation.
playback_sync_problems.blend

**System Information** *Operating System:* Windows 8.1, 64-bit *Graphics Card:* ASUS GeForce GTX 780 DirectCU II OC 3GB GDDR5 *Processor:* Intel Core i7-3770 @ 3.40 GHz *Memory:* 12.0 GB DDR3 **Blender Version** *Broken:* 2.71 *Worked:* 2.70a **Short description of error** Using AV-sync with default cube in 2.71 indicates a consistent 24 fps, but actually plays at ~4 fps. **Exact steps for others to reproduce the error** Open 2.71 startup file, turn on AV-sync and playback animation. [playback_sync_problems.blend](https://archive.blender.org/developer/F97333/playback_sync_problems.blend)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @MontagueMGM

Added subscriber: @MontagueMGM
Joerg Mueller was assigned by Sergey Sharybin 2014-07-10 18:55:22 +02:00

Added subscriber: @Sergey

Added subscriber: @Sergey

Joerg, mind looking into the issue?

Joerg, mind looking into the issue?
Member

Added subscriber: @ThomasDinges

Added subscriber: @ThomasDinges
Member

Neither @ThomasDinges nor I could reproduce the bug. Does it depend on the audio system you are using? Try changing from OpenAL to SDL in User Preferences -> System and see if that changes anything.

Also how can you see those ~4 fps? Is the timeline moving that slow? Because the file you attached or the default startup file has no animation.

Neither @ThomasDinges nor I could reproduce the bug. Does it depend on the audio system you are using? Try changing from OpenAL to SDL in User Preferences -> System and see if that changes anything. Also how can you see those ~4 fps? Is the timeline moving that slow? Because the file you attached or the default startup file has no animation.

Switching from SDL audio to OpenAL fixed the problem with both the timeline and the 3D viewport. But what could cause this problem with SDL's audio sync?

And yeah, in the file I attached the frame number indicator on the timeline was the one that moved at around 4 fps. However in a different file with animation, the 3D viewport was also moving slower than the fps indicator.

Switching from SDL audio to OpenAL fixed the problem with both the timeline and the 3D viewport. But what could cause this problem with SDL's audio sync? And yeah, in the file I attached the frame number indicator on the timeline was the one that moved at around 4 fps. However in a different file with animation, the 3D viewport was also moving slower than the fps indicator.
Member

Interesting, why did you configure SDL as audio system? Normally OpenAL should be default. I tried again now with SDL, but still cannot reproduce the bug. I wonder if it's just a windows 8 thing? Do you have a chance to test it on a windows 7 computer?

Interesting, why did you configure SDL as audio system? Normally OpenAL should be default. I tried again now with SDL, but still cannot reproduce the bug. I wonder if it's just a windows 8 thing? Do you have a chance to test it on a windows 7 computer?

Unfortunately, I don't have access to a computer running Windows 7. I ran Blender on compatibility mode's Windows 7 but the SDL audio device still caused AV-sync to lag. I don't remember exactly why or when my default was set to SDL because I've been using a custom startup file for nearly a year, but I'm guessing it's because I was trying to see how it differs from OpenAL and forgot, or didn't get the chance to switch it back before saving a new startup file.

Some additional information- manually scrolling through the timeline with the mouse, on SDL's audio device and with AV-sync enabled and even with audio scrubbing turned on, doesn't lag the animation. It only lags when I try to playback the animation in an editor window.

Unfortunately, I don't have access to a computer running Windows 7. I ran Blender on compatibility mode's Windows 7 but the SDL audio device still caused AV-sync to lag. I don't remember exactly why or when my default was set to SDL because I've been using a custom startup file for nearly a year, but I'm *guessing* it's because I was trying to see how it differs from OpenAL and forgot, or didn't get the chance to switch it back before saving a new startup file. Some additional information- manually scrolling through the timeline with the mouse, on SDL's audio device and with AV-sync enabled and even with audio scrubbing turned on, doesn't lag the animation. It only lags when I try to playback the animation in an editor window.
Member

When using SDL, which buffer size did you setup in the settings? Maybe that's too high?

When using SDL, which buffer size did you setup in the settings? Maybe that's too high?

The buffer size for SDL is set to 2048. Setting it to 256 added a slight ~1.0 frame per second and switching it to 32768 basically cut the entire frame rate in half. Various combinations of all the other audio settings didn't seem to make any difference, and none of the audio settings changed on OpenAL made it run slower.

The buffer size for SDL is set to 2048. Setting it to 256 added a slight ~1.0 frame per second and switching it to 32768 basically cut the entire frame rate in half. Various combinations of all the other audio settings didn't seem to make any difference, and none of the audio settings changed on OpenAL made it run slower.
Member

Added subscriber: @MartijnBerger

Added subscriber: @MartijnBerger
Member

I just tried this bug on the PC of a friend with the official 2.71 zip file and I can reproduce the problems with windows 8. The problem however is in the SDL library and cannot be fixed from here. The only thing we can try is if updating the SDL libraries helps. @Sergey @MartijnBerger maybe one of you can look into this?

I just tried this bug on the PC of a friend with the official 2.71 zip file and I can reproduce the problems with windows 8. The problem however is in the SDL library and cannot be fixed from here. The only thing we can try is if updating the SDL libraries helps. @Sergey @MartijnBerger maybe one of you can look into this?

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

We've upgraded now to latest SDL-2.0 now. If the issue is with SDL, you'd better report issue to their tracker i believe. We can not solve bugs in code we don't maintain.

So thanks for the report, but we did everything we could here..

We've upgraded now to latest SDL-2.0 now. If the issue is with SDL, you'd better report issue to their tracker i believe. We can not solve bugs in code we don't maintain. So thanks for the report, but we did everything we could here..
Sign in to join this conversation.
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
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#41021
No description provided.