Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jan 2021 02:35:07 +0100
From:      Mathias Picker <Mathias.Picker@virtual-earth.de>
To:        freebsd-x11@freebsd.org
Subject:   SOLVED Re: Sloow blender on FreeBSD (vs Ubuntu)
Message-ID:  <86bldowdkk.fsf@virtual-earth.de>
In-Reply-To: <86bldsd7dw.fsf@virtual-earth.de>
References:  <86mtxk8xb8.fsf@virtual-earth.de> <86lfd4tvc4.fsf@virtual-earth.de> <86bldsd7dw.fsf@virtual-earth.de>

next in thread | previous in thread | raw e-mail | index | archive | help

Mathias Picker <Mathias.Picker@virtual-earth.de> writes:

> Mathias Picker <Mathias.Picker@virtual-earth.de> writes:
>
>> Well, I forgot to include some info about the system:
>>
>> dmesg https://pastebin.com/RGA3VLiB
>> xorg.log https://pastebin.com/8C49UGKk
>>
>> anything else, just ask.
>>
>> Mathias Picker <Mathias.Picker@virtual-earth.de> writes:
>>
>>> Hi all,
>>>
>>> the last days I tried to get blender into working state on a=20
>>> 2nd gen Thinkpad
>>> X1 Yoga.
>>>
>>> tl;dr
>>>
>>> blender is stuttering and jerky on my X1 running an I7-8550U /=20
>>> UHD620
>>> (4-core,
>>> 2/4Ghz) and FreeBSD, while it works like a charm on my Surface=20
>>> Go Pentium
>>> Gold
>>> 4415Y/HD615 (2-core, 1.6Ghz) with Ubuntu.
>>> This is both on 12-STABLE and -CURRENT. It=E2=80=99s a bit better on=20
>>> -CURRENT, but
>>> still horrible.
>>>
>>> Is there any way to speed blender up on FreeBSD?
>>>
>>>
>>> Long version:
>>> I wanted to try out blenders Grease Pencil, up until now I=20
>>> only used blender
>>> for video editing.
>>>
>>> GP or rotating 3D-Scenes in blender 2.90 on 12-STABLE was=20
>>> abysmally slow and
>>> crashed repeatedly after a few strokes with grease pencil or a=20
>>> few minutes
>>> work in the 3D-view with:
>>> Jan  4 23:04:17 Danton kernel: drmn0: GPU HANG: ecode=20
>>> 9:1:0x87f99eb9, in
>>> blender [100824], hang on rcs0
>>> Jan  4 23:04:17 Danton kernel: drmn0: Resetting rcs0 for hang=20
>>> on rcs0
>>>
>>> The GPU reset did not work, machine hangs, reboot via ssh.
>>>
>>> Recompiled blender, tried older version, all with the same=20
>>> result,=20
>>> although 2.8x seemed a bit faster, but still slow & crashes.
>>>
>>> Searched the web, found similar problems by others on Linux,=20
>>> suggested KMS
>>> update.
>>>
>>> So I switched to -CURRENT with drm-current-kmod (5.4 instead=20
>>> of 4.5)
>>>
>>> Same GPU hang, but here the reset works. Performance=20
>>> *slightly* better, but
>>> every hang takes about 2 sec, no way to work with this.
>>>
>>> Updating X1 bios - now the error did not happen for quite some=20
>>> time.=20
>>>
>>> But still, quite slow. Stuttering when rotating the default=20
>>> cube in simple
>>> solid  or  wireframe mode. On a I7-8550U running full speed=20
>>> (hwpstate_intel
>>> with epp=3D0), cpu freq between 2500 and 3900).
>>>
>>> Installed mesa-devel=EF=BC=9Athe GPU hang is back.
>>>
>>> Recompiled blender to 2.91.0_2, mesa-devel, drm everything. No=20
>>> more GPU hang
>>> for now, but still stuttering motions, Grease Pencil strokes=20
>>> hang back 1-2
>>> seconds from my stylus.
>>>
>>> Then I tried my 1st gen Surface Go 8Gb running Ubuntu: Blender=20
>>> is=20
>>> blazing fast for these simple tasks. Fluid rotation, allmost=20
>>> real=20
>>> time grease pencil=EF=BC=9AWTF?
>>>
>>> This is an i7-8550U quad core running 2/4Ghz with an UHD620=20
>>> GPU against a
>>> Pentium Gold, and the Pentium wins hands down?
>>>
>>> I would really *love* to get blender up even only to Pentium=20
>>> speed. Blender
>>> with simple models in solid mode should *fly* on my X1, same=20
>>> with a few
>>> Grease Pencil strokes=E2=80=A6
>>>
>>>
>>> Any ideas, help, suggestion?
>>>
>>> Thanks, Mathias
>
> Just tried a live CD of Ubuntu on the same machine, with the=20
> demo Race Spaceship=20
> https://download.blender.org/demo/eevee/race_spaceship/race_spaceship.ble=
nd
>
> This is a compley scene and can be rotated with ubuntu in real=20
> time in material
> mode, and is only very slightly lagging in rendered mode.
>
> On FreeBSD that spaceship rotates about as slow and stuttery as=20
> the default
> cube.
> So it does not seem to be dependent on the complexity of the=20
> scene.
>
> Any ideas where to look?
>
> Any ideas whom to ask?
>
> Thanks, Mathias

Using either

vblank_mode=3D0 blender

or

LIBGL_DRI3_DISABLE=3D1 blender

gives me the speed I need. Now it=E2=80=99s faster than the surface go ;)


/ Mathias

--=20
Mathias Picker=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20
Gesch=C3=A4ftsf=C3=BChrer
Mathias.Picker@virtual-earth.de

virtual earth Gesellschaft f=C3=BCr Wissens re/pr=C3=A4 sentation mbH
http://www.virtual-earth.de/           HRB126870
support@virtual-earth.de               Westendstr. 142
089 / 1250 3943=20=20=20=20=20=20=20=20=20=20=20=20



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86bldowdkk.fsf>