On Mon, Sep 14, 2015 at 08:57:39AM -0400, PhilipPirrip wrote:
> On 09/14/2015 04:09 AM, Jean-Marc Lasgouttes wrote:
> >>Performance is good.
> >Is it really better than 2.1? (it should)
> 
> I guess I first need to learn how to test this.
> 
> I just made a document with some 25k characters (a few copies of lorem ipsum
> from the web).
> 2.1 scrolls pretty fast, the scroll bar follows the mouse pointer.
> 2.2 is lagging, it takes time for the bar to reach the pointer, and
> scrolling does not feel smooth. Two finger (mouse wheel) scrolling is
> unusable, the scrollbar stands still for most of the time then jumps.

This could be due to the level of optimization that you use when
compiling. For a true comparison, you might need to manually compile
the 2.1.x branch (which also should support Qt 5) with the same level of
optimization.

Note also that there are many other compilations flags that you can set.
You can see them at the end of the output of your "cmake
/path/to/source" command. As an example of how to set them, below is my
cmake command:

  cmake "${gitRepoDIR}/" \
    -DCMAKE_INSTALL_PREFIX=/usr/local/lyx-master \
    -DLYX_DEBUG=ON -DLYX_RELEASE=OFF -DLYX_CPACK=ON \
    -DLYX_PROGRAM_SUFFIX=ON -DLYX_LOCALVERSIONING=ON \
    -DCPACK_BINARY_RPM:BOOL=OFF -DCPACK_BINARY_DEB:BOOL=ON \
    -DCPACK_BINARY_NSIS:BOOL=OFF -DCPACK_BINARY_STGZ:BOOL=OFF \
    -DCPACK_BINARY_TGZ:BOOL=OFF -DCPACK_BINARY_TBZ2:BOOL=OFF \
    -DCPACK_BINARY_TZ:BOOL=OFF -DCPACK_SOURCE_TBZ2:BOOL=OFF \
    -DCPACK_SOURCE_TGZ:BOOL=ON -DCPACK_SOURCE_TZ:BOOL=OFF \
    -DCPACK_SOURCE_ZIP:BOOL=OFF -DLYX_EXTERNAL_BOOST=OFF \
    -DLYX_HUNSPELL=ON -DLYX_ENCHANT=ON -DLYX_NLS=ON \
    -DLYX_ENABLE_CXX11=ON \
    -DLYX_ENABLE_URLTESTS=ON \
    -DLYX_ENABLE_EXPORT_TESTS=ON \
    -DLYX_USE_QT=QT5 -DLYX_CXX_FLAGS_EXTRA="${CPPFLAGS}"

where gitRepoDIR and CPPFLAGS are my own defined variables.

There are equivalents when building with autotools.

Scott

Reply via email to