banner



How To Turn Off Animations In Unity

enter image description here

1. Why you cannot disable this Dash animation in Unity 12.04

  • Unfortunately, the fade/opacity blitheness and associated times are hard-coded in the Unity source code.
  • The actual code may be found in unity-5.12/plugins/unityshell/src/ShortcutController.cpp (this is what you would have to modify and recompile to get rid of the animations)
  • Some sample lines from this file demonstrating the difficult-coding of the animation when you use the Super primal to launch the Nuance:

    thirty:const unsigned int SUPER_TAP_DURATION = 650; 31:const unsigned int FADE_DURATION = 100; 39:  , fade_in_animator_(FADE_DURATION) 40:  , fade_out_animator_(FADE_DURATION) 65:  fade_in_animator_.animation_updated.connect(sigc::mem_fun(this, &Controller::OnFadeInUpdated)); 66:  fade_in_animator_.animation_ended.connect(sigc::mem_fun(this, &Controller::OnFadeInEnded)); 67:  fade_out_animator_.animation_updated.connect(sigc::mem_fun(this, &Controller::OnFadeOutUpdated)); 68:  fade_out_animator_.animation_ended.connect(sigc::mem_fun(this, &Controller::OnFadeOutEnded)); 120:    show_timer_ = g_timeout_add(SUPER_TAP_DURATION, &Controller::OnShowTimer, this); 149:    self->fade_out_animator_.End(); 150:    self->fade_in_animator_.First(cocky->view_window_->GetOpacity()); 213:    fade_in_animator_.Cease(); 214:    fade_out_animator_.Get-go(1.0 - view_window_->GetOpacity()); 244:  .add("timeout_duration", SUPER_TAP_DURATION + FADE_DURATION) 246:  .add("about_to_show", (Visible() && !fade_out_animator_.IsRunning() && view_window_ && view_window_->GetOpacity() != 1.0f)) 247:  .add("about_to_hide", (Visible() && !fade_in_animator_.IsRunning() && view_window_ && view_window_->GetOpacity() != one.0f))            
  • Of class, you would have to patch this and rebuild with every new Unity update...

  • No amount of meddling with Compiz can change this considering all of it is hard-coded exterior of the Compiz plugin.

two. Culling A: Switch to Ubuntu 2D

Ubuntu 2D has unlike Unity Shell code, and there, launching the nuance via Super is instantaneous and does not breathing annihilation.

3. Alternative B: Apply a custom shortcut to launch the Dash by clicking on the Ubuntu Logo, thus bypassing the animation

We tin exploit the fact that the opacity/fade animation does non happen when you launch the Dash via the "start" push, or, if your cursor is on/around the launcher bar, even if you press Super:

enter image description here

The animation will exist delayed until your cursor actually moves inside the dash area.

  1. xdotool allows automation of keyboard and mouse clicks/movements; install information technology with sudo apt-get install xdotool
  2. Open Settings...Keyboard, and go to the Shortcuts tab. Create a custom shortcut, naming information technology whatever y'all want, and fix the "Command" to:

                  xdotool mousemove --sync 25 threescore click 1 --delay 100  mousemove restore                          

    enter image description here

    • You may demand to adjust the coordinates (25 lx) a little if your screen resolution is below 1024x768 or then.
  3. Click Apply. The right-column volition say "Disable", click on it and you'll see "New Accelerator": press your shortcut key combo. You lot cannot choose Super, even if you lot disable it in Compiz, because it is hard-captured past Unity. I chose Ctrl+Alt+Z since it'south shut to the Super key.

  4. Now your shortcut should launch the Dash much, much faster.

    • Here's a Youtube video demo. The first few times (when the launcher on the left blurs and darkens) is with the SUPER central; then its with the custom xdotool shortcut (notice the launcher no longer animates and the nuance appears faster)

Install Compiz Configuration Manager.

Ubuntu Software Center: Compiz Configuration Manager

or

Terminal: sudo apt-get install compizconfig-settings-manager

Once installed open it and got to Ubuntu Unity Plugin -> Experimental(Tab)

From there y'all can set up Lauch Animation, Urgent Animation and Dash Mistiness to `None.

Set the Hide Animation to Slide but.

If y'all want, you can alter the panel and dash transparency to be total opaque.

Deplorable, You can't. At this signal (25th July, 2012) with Ubuntu 12.04 LTS, There is NO easy way to disable Unity animations. (at least without recompilation).

And I don't think, there will be an option to disable animations in future releases. Because, One of the goal of Unity is to provide pleasing user feel and animations are considered i of the all-time way to achieve that.

A workaround:

The possible workaround for you is changing the nuance animation to fade (cause, In my opinion, fades are quicker than sliding). You may also interested in disabling the animations for all windows also. To do this,

  1. Download and install compizconfig-settings-managing director

                                  sudo apt-get install compizconfig-settings-manager                          
  2. Open it by searching or typing ccsm in dash. Go to Unity pluginExperimental tab and change the settings for Hibernate animations to Fade merely.

If y'all desire to disable the animations in all window, you can disable the Animations plugin in ccsm. If you want to disable Fading, disable the Fading windows plugins.

Promise this will assist.


Edit: As izx showed in his edited answer You conspicuously see that, the options of dash animations are difficult coded in the Unity, and those cannot be inverse with any configuration options, considering those time durations aren't variable which tin be changed. And then, this means, You lot have to recompile unity past changing those time durations to 0 ms to completely disable the animations.

Source: https://newbedev.com/how-to-disable-all-unity-animations

Posted by: robinsonadardly84.blogspot.com

0 Response to "How To Turn Off Animations In Unity"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel