Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

2

How to significantly speed up web client in v7 by turning off animation?

By
Max Kosenko
on 2/7/13, 3:01 PM 2,816 views

Based on our tests animation takes > 80% of cpu on client computer. Plus some requests to server are waiting until animation will be finished. During fast browsing in the system it slows things too much. Is there any option to turn it off to make speed comparable to desktop erp systems?

I would like the option of disabling the animations too, especially when I'm testing. Being able to shorten the animation time (in milliseconds) would be a very nice option as well.

Abner Galeno Jr.
on 2/7/13, 11:45 PM

Can you precise exactly what you call animations?

Fabrice Henrion (fhe)
on 2/8/13, 4:44 AM

I think it's about the fade-in and fade-out animation done by javascript on the web client..

Abner Galeno Jr.
on 2/8/13, 4:48 AM

Yes, I mean those JQuery animations of fading in/ou, animated resize and background tinting. All those things look nice for those who want to look on modern UI, but it slows down real work significantly. So having user (or system) option to turn off animation would benefit real heavy load users life

Max Kosenko
on 2/8/13, 4:59 AM

apart from the fade out of the login screen I am not seeing any animations. Can you specifically point to an operation that features an animation or graduated fade?

Libertus Solutions, Alan Bell
on 2/10/13, 10:08 AM

Loading label, background tint, modal dialogs expanding. This is what I can visually see. Debugger shows a lot of animation during whole use.

Max Kosenko
on 2/10/13, 6:35 PM
0
Alan Bell
On 2/10/13, 10:27 AM

things that fade in and out are:

  • The login screen

  • the "loading" animation while it assembles a page of html

  • date pickers fade out

  • Notifications fade in and out

there may be some things that have a 0.2second ease-out transition on them, but I can't find any. I just see the definition for it in the css files. jquery transitions are normally asynchronous, so they don't stop execution or slow anything down, you just start the transition and then the javascript carries on going so I doubt that anything much is waiting on an animation to complete - with the possible exception of the "Invalid username or password" error message on login which is in a callback at the end of the login pane fadein animation.

When you saying something is asynchronous in javascript, you should take into account that it's actually not. It's taking 80% CPU, keeping some code on mutexes and blocking user input until it's finished. Just try to move fast around UI and you will see that animation literally slows you down a lot.

Max Kosenko
on 2/10/13, 6:43 PM

I think the CPU only eats 40-80% usage in a burst of less than a sec. but i noticed that not all operations are asynchronous. Using some tools, the resources even seems to be loaded sequentially - that's why the wait time adds up. Worst, the interface is usually unnecessarily locked in the process.

Abner Galeno Jr.
on 2/10/13, 11:22 PM

The "mostly sequential" loading of the resources can be inferred here : http://i.imgur.com/3bnj5FX.png . Maybe it's because of the modular architecture of OpenERP. In an interesting note, the user profile pic and search_reset.gif are now cached,so it seems some devs are reading the feedbacks?yey!

Abner Galeno Jr.
on 2/10/13, 11:26 PM

I will do a video of me moving around the UI fast, I am not seeing much of a problem to be honest, running OpenERP on a virtual server located in Germany and I am in the UK using a fairly ordinary core i3 laptop. CPU doesn't go high at all. I am using chromium as my browser.

Alan Bell
on 2/11/13, 4:55 AM

ah, hang on, you are having domain resolution problems too. These animations you talk about, is that simply it assembling the page as the data arrives rather than any actual intentional animation?

Alan Bell
on 2/11/13, 5:00 AM

When I was talking about 80% CPU, I cerntanly don't mean of whole CPU. I mean that 80% of application cpu time is taken by animation. And some animation just simply slow - modal dialogs are painfully slow resizing. If you check Chrome debugger you will see a lot of steps of redrawing frames on timer

Max Kosenko
on 2/11/13, 8:48 AM

something isn't right there then. I am using Chrome, Chromium and Firefox on Ubuntu 12.10 with Intel graphics on a core i3 processor, it is perfectly smooth resizing and moving dialogs and doesn't show anything much in the javascript cpu profile in the debugger.

Alan Bell
on 2/11/13, 9:14 AM

I see in debugger several timers one after another set to 300ms delays. It's not about not smooth. It's about that animation forces me to wait while I can already do something. It should be option for users to see it moving, fading and resizing or work faster.

Max Kosenko
on 2/11/13, 9:43 AM

May i know, how to disable these animations ? Especially in the POS, for me the loading of products and details are more important, not the UI.

Benoy P P
on 4/29/13, 5:56 PM

I am also experiencing a lot of wait times while navigating. And if you click a link while the screen is still loading, you get an error. Same thing with the search screen. You have to type very slowly, or else part of what you type gets lost. Very annoying. For an ERP system, I definately prefer speed over look anytime.

Flyguy
on 7/18/13, 8:48 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

4 follower(s)

Stats

Asked: 2/7/13, 3:01 PM
Seen: 2816 times
Last updated: 3/16/15, 8:10 AM