← Back to team overview

kicad-developers team mailing list archive

Re: 3D Viewer "Render current view using Raytracing" is ludicrously slow

 

Without OpenMP and with Retina (2x the resolution, means 4x the image size)
This means that for this setup, an i7 with 8 logic cpu, it will result on a ~32x slower renderings.

For comparison with a regular setup with a i7 without Retina, if user complained about 60 minutes render, it could result on a 60/32 = 1.8s render (realistic, ~3s .. 6s as I experienced on similar setups)

Mario Luzeiro
________________________________________
From: Kicad-developers <kicad-developers-bounces+mrluzeiro=ua.pt@xxxxxxxxxxxxxxxxxxx> on behalf of Jeff Young <jeff@xxxxxxxxx>
Sent: 28 February 2018 11:40
To: Bernhard Stegmaier
Cc: KiCad Developers
Subject: Re: [Kicad-developers] 3D Viewer "Render current view using Raytracing" is ludicrously slow

I can confirm.  I tried to get a different compiler up and running for it, but in the end just recoded the progress dialog using STL.


On 28 Feb 2018, at 11:38, Bernhard Stegmaier <stegmaier@xxxxxxxxxxxxx<mailto:stegmaier@xxxxxxxxxxxxx>> wrote:

To best of my knowledge and last investigations OpenMP is (unfortunately) not available with the stock Xcode clang.


Regards,
Bernhard

On 28. Feb 2018, at 12:21, Nick Østergaard <oe.nick@xxxxxxxxx<mailto:oe.nick@xxxxxxxxx>> wrote:

OpenMP does not seem to be enabled on the current macos nightlies. I am not sure what to install to get that working. Also, it would be nice if it could get into the version info.

2018-02-28 11:20 GMT+01:00 Mário Luzeiro <mrluzeiro@xxxxx<mailto:mrluzeiro@xxxxx>>:
Hi Andy,

This most probably sounds to me as "it is working as expected".
Raytracing rendering method is consider to be an "offline rendering" (means, it will take a lot and you can go offline for a coffee and back after a while)

However for simple scenes I am not expecting such a long time.
Depending on the options I may expect just a few seconds for some scenes.

My guesses, for developers to investigate are:
- Make sure KiCad on MacOS is build with OpenMP enabled and it is working. This is very important to make rendering to work in parallel.
- Since Macs have that "Retina" thing.. could that be the screen resolution is actually 4x (? I dont know how it works..) what it is displaying (comparing to a regular display)?

Mario Luzeiro
________________________________________
From: Kicad-developers <kicad-developers-bounces+mrluzeiro=ua.pt@xxxxxxxxxxxxxxxxxxx<mailto:ua.pt@xxxxxxxxxxxxxxxxxxx>> on behalf of Andy Peters <devel@xxxxxxxxx<mailto:devel@xxxxxxxxx>>
Sent: 27 February 2018 23:21
To: KiCad Developers
Subject: [Kicad-developers] 3D Viewer "Render current view using Raytracing"    is ludicrously slow

This is probably way low on the list of priorities …

On a 2017 MacBook Pro (Retina, touch bar, 16 GB RAM, with the Radeon 555 graphics), the "Render current view using Raytracing" is ludicrously slow, as in it takes about a minute to render a “simple” design (front panel thing with LEDs and buttons).

I admit that I didn’t know what that blue cube in the 3D viewer’s toolbar was for. I guess it’s really a tesseract.

Anyway, it re-draws the display and then when you zoom or pan it reverts back to the original rendering (which is quite fast).

-a



Application: kicad
Version: (5.0.0-rc2-dev-26-g0d794b2), release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.54.0 LibreSSL/2.0.20 zlib/1.2.11 nghttp2/1.24.0
Platform: Mac OS X (Darwin 17.4.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
    wxWidgets: 3.0.4 (UTF-8,STL containers,compatible with 2.8)
    Boost: 1.61.0
    Curl: 7.43.0
    Compiler: Clang 7.3.0 with C++ ABI 1002

Build settings:
    USE_WX_GRAPHICS_CONTEXT=ON
    USE_WX_OVERLAY=ON
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_SPICE=ON
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx<mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx<mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx<mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp



References