Keyed animations slow in blenderplayer on OS X #37514

Closed
opened 2013-11-18 13:31:34 +01:00 by Alex Fraser · 35 comments
Member

System Information

Computer 1: 13" Macbook Air

  OS: OS X 10.8.5
  CPU: Intel i7 1.7GHz
  RAM: 8GB
  Graphics: Intel HD Graphics 5000 1GB

Computer 2: 15" Macbook Pro

  OS: OS X 10.9 (Build 13A603)
  CPU: Intel i7 2.6
  RAM: 16GB
  GPU: Nvidia Geforce GT 650M 1GB(discrete) and Intel HD Graphics 4000 1GB(integrated)

Blender Version
Broken: Blender 2.69 (64-bit)
Worked: Don't know (difficult to test as I have to use a friend's computer)

Short description of error

On OS X, animations in the blenderplayer run slowly - apparently about 5fps - even when the rest of the game has a (much) higher refresh rate. On Windows and Linux, keyed animations in blenderplayer are fine.

Exact steps for others to reproduce the error
osx_anim_test1.blend

The test file above contains 5 animated objects. From left to right:

  • Object: Two cubes parented an animated using keyframed location and rotation.
  • Armature IK: A mesh with bones using IK to animate.
  • Armature Keyed: A mesh with bones using a keyed animation.
  • Python: An object moved using a Python script on every logic tick.
  • Physics: Cubes bouncing around using Bullet dynamics (rigid body).
  1. Open the file above in Blender on OS X.
  2. Press P to start the game.
    - Result: All five animations should play with the same frame rate.
  3. Open the file in blenderplayer. You may need to run it from the console, e.g. ./blenderplayer.app/Contents/MacOS/blenderplayer osx_anim_test1.blend
    - Result: The first three animations display poorly, at only 5fps or so. The two on the right (Python and Physics) display well, probably at 60fps.
**System Information** Computer 1: 13" Macbook Air ``` OS: OS X 10.8.5 CPU: Intel i7 1.7GHz RAM: 8GB Graphics: Intel HD Graphics 5000 1GB ``` Computer 2: 15" Macbook Pro ``` OS: OS X 10.9 (Build 13A603) CPU: Intel i7 2.6 RAM: 16GB GPU: Nvidia Geforce GT 650M 1GB(discrete) and Intel HD Graphics 4000 1GB(integrated) ``` **Blender Version** Broken: Blender 2.69 (64-bit) Worked: Don't know (difficult to test as I have to use a friend's computer) **Short description of error** On OS X, animations in the blenderplayer run slowly - apparently about 5fps - even when the rest of the game has a (much) higher refresh rate. On Windows and Linux, keyed animations in blenderplayer are fine. **Exact steps for others to reproduce the error** [osx_anim_test1.blend](https://archive.blender.org/developer/F28439/osx_anim_test1.blend) The test file above contains 5 animated objects. From left to right: - Object: Two cubes parented an animated using keyframed location and rotation. - Armature IK: A mesh with bones using IK to animate. - Armature Keyed: A mesh with bones using a keyed animation. - Python: An object moved using a Python script on every logic tick. - Physics: Cubes bouncing around using Bullet dynamics (rigid body). 1. Open the file above in Blender on OS X. 1. Press P to start the game. - **Result:** All five animations should play with the same frame rate. 1. Open the file in blenderplayer. You may need to run it from the console, e.g. `./blenderplayer.app/Contents/MacOS/blenderplayer osx_anim_test1.blend` - **Result:** The first three animations display poorly, at only 5fps or so. The two on the right (Python and Physics) display well, probably at 60fps.
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Dalai Felinto was assigned by Alex Fraser 2013-11-18 13:31:34 +01:00
Author
Member

Added subscriber: @z0r

Added subscriber: @z0r

Here it works fine, they are all equally smooth.
I even forced my OSX to use my integrated display (Intel HD Graphics 3000) and no problems either

Here it works fine, they are all equally smooth. I even forced my OSX to use my integrated display (Intel HD Graphics 3000) and no problems either

The above test was performed with a Mac Book Pro, OSX 10.8.5, Vanilla/official 2.69 blenderplayer, processor i7. Tested with AMD Radeon HD 6750M and the integrated intel)

The above test was performed with a Mac Book Pro, OSX 10.8.5, Vanilla/official 2.69 blenderplayer, processor i7. Tested with AMD Radeon HD 6750M and the integrated intel)
Dalai Felinto removed their assignment 2013-11-18 13:52:01 +01:00
jens verwiebe was assigned by Dalai Felinto 2013-11-18 13:52:01 +01:00

Added subscriber: @dfelinto

Added subscriber: @dfelinto
Author
Member

Thanks for testing it. Very strange that the results are different - you have quite a similar system to the one my colleague has. And it's not just this file; it also happens on my big game.

Thanks for testing it. Very strange that the results are different - you have quite a similar system to the one my colleague has. And it's not just this file; it also happens on my big game.
Member

Hi
Made the test on MacPro with AMD 7970 -> all @ 60fps here, in Blender == Player

Jens

Hi Made the test on MacPro with AMD 7970 -> all @ 60fps here, in Blender == Player Jens
Author
Member

Added subscriber: @jensverwiebe

Added subscriber: @jensverwiebe
Author
Member

Discussed with @jensverwiebe in IRC; we think we need to test again on Computer 2 to confirm that the nVidia card is being used. Jens suspects that the issue is related to running on Intel HD.

To check which card is in use, check About this Mac > System Information > Graphics/Monitors. Select a graphics card from the list on the right, and the monitors that it uses will be listed below.

Questions about this:

  • What happens if an application is dragged onto the other monitor? Does it use a different GPU?
  • What happens if the application is half-way between two monitors?
Discussed with @jensverwiebe in IRC; we think we need to test again on *Computer 2* to confirm that the nVidia card is being used. Jens suspects that the issue is related to running on Intel HD. To check which card is in use, check *About this Mac > System Information > Graphics/Monitors*. Select a graphics card from the list on the right, and the monitors that it uses will be listed below. Questions about this: - What happens if an application is dragged onto the other monitor? Does it use a different GPU? - What happens if the application is half-way between two monitors?
Author
Member

See also:

See also: - [MacBook Pro: How to determine which graphics processor is in use ](http://support.apple.com/kb/ht4152) - Free & open source utility [gfxCardStatus ](http://gfx.io/) to force usage of discrete or integrated card

Added subscriber: @tonialatalo

Added subscriber: @tonialatalo

Works fine here also, all animations play with the same good framerate in official Blender 2.69.0 release's blenderplayer (started from cmdline)

MacBook Pro Retina, 13-inch, Late 2012
Intel HD Graphics 4000 1024 MB

Works fine here also, all animations play with the same good framerate in official Blender 2.69.0 release's blenderplayer (started from cmdline) MacBook Pro Retina, 13-inch, Late 2012 Intel HD Graphics 4000 1024 MB
Author
Member

Thanks for testing! Well, I guess I will have to test further on my friends' computers to find out what is different about them.

Thanks for testing! Well, I guess I will have to test further on my friends' computers to find out what is different about them.
Member

Hi
I think this issue shouldn't be a biggie as it works when played in Blender directly.
Must check if we have a slightly other situation when playing in standalone player.
Would be nice if ppl with MacBooks, expecially with Intel gfx could check and comment.

My guess atm.: player somehow uses Intel gfy always and we must push it to switch to
dedicated NVidia gfx somehow.

Jens

Hi I think this issue shouldn't be a biggie as it works when played in Blender directly. Must check if we have a slightly other situation when playing in standalone player. Would be nice if ppl with MacBooks, expecially with Intel gfx could check and comment. My guess atm.: player somehow uses Intel gfy always and we must push it to switch to dedicated NVidia gfx somehow. Jens

Can't a software like gfxCardStatus be used to identify which graphic card is used at the moment?

Can't a software like gfxCardStatus be used to identify which graphic card is used at the moment?
Author
Member

Tested on two more Macs:

  OS: OS X 10.6.8 (Build 10K549)
  CPU: Intel Core 2 Duo (2.53GHz)
  RAM: 4GB
  GPU: Nvidia GeForce 9400M
  OS: OS X 10.9 (Build 13A603)
  CPU: Intel Core i7 (2.3GHz)
  RAM: 4GB
  GPU: Nvidia Geforce GT 650M 1GB(discrete) and Intel HD Graphics 4000 1GB(integrated)

As expected, the bug is only present on the second computer (the one with the Intel graphics card). This is despite the first computer being much older. The second one is almost the same configuration as "Computer 2" in the issue description.

For the second computer, we checked which graphics card was in use as described in #37514#16. A screenshot of the Activity Monitor is included below.

ActivityMonitor-blenderplayer.png

The row for BlenderPlayer is listed as requiring high-performance graphics; therefore it seems that blenderplayer is using the nVidia GPU for drawing, however the bug is still present. This suggests that the presence of the Intel card triggers the bug, even when it isn't being used - or the bug is triggered by something else entirely.

Tested on two more Macs: ``` OS: OS X 10.6.8 (Build 10K549) CPU: Intel Core 2 Duo (2.53GHz) RAM: 4GB GPU: Nvidia GeForce 9400M ``` ``` OS: OS X 10.9 (Build 13A603) CPU: Intel Core i7 (2.3GHz) RAM: 4GB GPU: Nvidia Geforce GT 650M 1GB(discrete) and Intel HD Graphics 4000 1GB(integrated) ``` As expected, the bug is only present on the second computer (the one with the Intel graphics card). This is despite the first computer being much older. The second one is almost the same configuration as "Computer 2" in the issue description. For the second computer, we checked which graphics card was in use as described in #37514#16. A screenshot of the Activity Monitor is included below. ![ActivityMonitor-blenderplayer.png](https://archive.blender.org/developer/F37481/ActivityMonitor-blenderplayer.png) The row for BlenderPlayer is listed as requiring high-performance graphics; therefore it seems that blenderplayer is using the nVidia GPU for drawing, however the bug is still present. This suggests that the presence of the Intel card triggers the bug, even when it isn't being used - or the bug is triggered by something else entirely.

Added subscriber: @Moguri

Added subscriber: @Moguri

Could you try running the attached file (glinfo.blend) and comparing the console output between Blender and the Blenderplayer?

Could you try running the attached file (glinfo.blend) and comparing the console output between Blender and the Blenderplayer?

Added subscriber: @JJDeveloper

Added subscriber: @JJDeveloper

Don't know if anyone can help, but I am using a VERY high poly model, and I've HIDDEN it, so that the computer doesn't need to process it, but that does not help. I try to manipulate the armature for animations and it still is not moving with my mouse in realtime, it is delayed by several seconds, which is frustrating because I don't know what position my bones are in and it is very hard to edit. I have downloaded the latest NVIDIA driver for Mac, which may help you guys out for your other problems. Still, my armature is slow and I want to make animations, but this makes it next to impossible, especially since Blender moves my bones every which way instead of following my mouse cursor, which would not be so bad if I got realtime feedback to adjust my mouse cursor to Blender's strange xyz coordinate system. I have

OS: OS X Mountain Lion (latest)
CPU: 2.6 GHz i7
RAM: 8GB
GPU: Nvidia GeForce GT 650M
Driver: Latest NVIDIA for Mac

Don't know if anyone can help, but I am using a VERY high poly model, and I've HIDDEN it, so that the computer doesn't need to process it, but that does not help. I try to manipulate the armature for animations and it still is not moving with my mouse in realtime, it is delayed by several seconds, which is frustrating because I don't know what position my bones are in and it is very hard to edit. I have downloaded the latest NVIDIA driver for Mac, which may help you guys out for your other problems. Still, my armature is slow and I want to make animations, but this makes it next to impossible, especially since Blender moves my bones every which way instead of following my mouse cursor, which would not be so bad if I got realtime feedback to adjust my mouse cursor to Blender's strange xyz coordinate system. I have OS: OS X Mountain Lion (latest) CPU: 2.6 GHz i7 RAM: 8GB GPU: Nvidia GeForce GT 650M Driver: Latest NVIDIA for Mac
Author
Member

Hi JJDeveloper,

I don't think your issue is related to this bug report, because this ticket is about the game engine. Have a look on BlenderArtists, e.g:

http://blenderartists.org/forum/archive/index.php/t-177183.html

If that doesn't help please open a new ticket.

Hi JJDeveloper, I don't think your issue is related to this bug report, because this ticket is about the game engine. Have a look on BlenderArtists, e.g: http://blenderartists.org/forum/archive/index.php/t-177183.html If that doesn't help please open a new ticket.

I don't know how to post on here. Also, sorry, but ticket? I just have a 4 million vert model I wish to export.

I don't know how to post on here. Also, sorry, but ticket? I just have a 4 million vert model I wish to export.
Member

Added subscriber: @brita

Added subscriber: @brita
Member

@JJDeveloper the bug tracker (this website) is used to report bugs. A bug report is also called a ticket.
You should ask for help using blender somewhere else, like the link z0r suggested. If something is malfunctioning with the export, you should fill in a new report/ticket.

@z0r did you do what moguri suggested?

Could you try running the attached file (glinfo.blend) and comparing the console output between Blender and the Blenderplayer?

@JJDeveloper the bug tracker (this website) is used to report bugs. A bug report is also called a ticket. You should ask for help using blender somewhere else, like the link z0r suggested. If something is malfunctioning with the export, you should fill in a new report/ticket. @z0r did you do what moguri suggested? >> Could you try running the attached file (glinfo.blend) and comparing the console output between Blender and the Blenderplayer?

Added subscriber: @Elijah-37

Added subscriber: @Elijah-37

ok so... The problem i'm having is after i make my Armatures and Meshes i make a few animations for the Armature, everything is running smoothly in the Standalone Player.

BUT! When i save my file and reopen Blender...... I press the Standalone Player in BGE and what happens? My armature is moving very choppy! This happens for all my Creatures/Characters/EVERYTHING THAT MOVES WITH ARMATURES!

...... Please help me.....

(I use low Textures and LowPoly Meshes, I even delete the Meshes and Textures and it's still very choppy, and i also use IK Rigs as well{F161093})

Let me know if i should put this commit elsewhere :) ty

ok so... The problem i'm having is after i make my Armatures and Meshes i make a few animations for the Armature, everything is running smoothly in the Standalone Player. BUT! When i save my file and reopen Blender...... I press the Standalone Player in BGE and what happens? My armature is moving very choppy! This happens for all my Creatures/Characters/EVERYTHING THAT MOVES WITH ARMATURES! ...... Please help me..... (I use low Textures and LowPoly Meshes, I even delete the Meshes and Textures and it's still very choppy, and i also use IK Rigs as well{[F161093](https://archive.blender.org/developer/F161093/IK_Rigs.png)}) Let me know if i should put this commit elsewhere :) ty

I'm also using a 2012 Macbook Pro

I'm also using a 2012 Macbook Pro
Author
Member

Hi @Elijah-37,

Could you please open the original test file osx_anim_test1.blend and run it once in the embedded player and once in standalone - do you see the same behaviour described in the first comment?

Hi @Elijah-37, Could you please open the original test file [osx_anim_test1.blend](https://archive.blender.org/developer/F28439/osx_anim_test1.blend) and run it once in the embedded player and once in standalone - do you see the same behaviour described in the first comment?

Yes! Only with the Armature Keyed and Armature IK

Yes! Only with the Armature Keyed and Armature IK
Member

Removed subscriber: @jensverwiebe

Removed subscriber: @jensverwiebe
jens verwiebe removed their assignment 2015-09-08 20:27:27 +02:00
Martijn Berger was assigned by jens verwiebe 2015-09-08 20:30:42 +02:00

Added subscriber: @panzergame

Added subscriber: @panzergame

@z0r: Which time category is the slowest ?

@z0r: Which time category is the slowest ?

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Archiving since we no longer support the game engine in 2.8.

Archiving since we no longer support the game engine in 2.8.
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
10 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#37514
No description provided.