You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.
I just wondered, is there a way cleaner to quickly count the number of elements equal to a certain value of properties than the following?
Ideally, the API would propose something like "numberOfNodes/EdgesEqualTo" in the similar manner as "getNodes/EdgesEqualTo".
I made a small benchmarking on a small graph (default web import on labri.fr + degrees, 159 nodes / 287 edges), here is the code (I'd like to count all nodes of degree 2):
Thanks for your input.
The result for the last method pointed out that there was a bug in PropertyInterface::set[Node|Edge]DefaultValue(val).
It has been fixed in commit 1b77ef1.
However this method is certainly the worse to count the number of elements because these are enumerated twice and this involves numerous updates of the property storage structures.
So, the second method is certainly the best.
QOpenGL module is marked as deprecated since a while now so it is time
to remove its use from the Talipot codebase and promote the use of
QOpenGL* classes directly integrated in the QtGui module.
The big difference between QOpenGL and QtOpenGL from Qt5 is that all
rendering is performed in framebuffer objects, there is no more direct
rendering in the underlying os windows with its own OpenGL context.
Talipot OpenGL rendering also follows that idiom, all renderings are performed
offscreen using a shared OpenGL context. This also means that there is no
more QGLWidget as viewport for QGraphicsView. Talipot OpenGL scene are
now converted to QImage in order to display them using the default Qt raster
rendering engine. This should fixes the numerous rendering glitches observed
on MacOS.
First thing observed after the migration is a consequent performance boost
in OpenGL rendering when using an Intel GPU on a Linux host machine (especially
when selecting elements, it is now 10 times faster on debian stable).
Hi,
I just wondered, is there a way cleaner to quickly count the number of elements equal to a certain value of properties than the following?
Ideally, the API would propose something like "numberOfNodes/EdgesEqualTo" in the similar manner as "getNodes/EdgesEqualTo".
I made a small benchmarking on a small graph (default web import on labri.fr + degrees, 159 nodes / 287 edges), here is the code (I'd like to count all nodes of degree 2):
The output is:
The last method is by far the fastest, but unfortunately does not work, or I made a mistake maybe.
Cheers,
The text was updated successfully, but these errors were encountered: