Blender problem (FreeBSD related, see below) reddit / freebsd ---------------------------------------------------------------------- Cold_Survey1998 · 2023-05-12 22:44 Hello I have been trying to get blender to run smoothly for as long as i have installed this system (13.2) This system is running an intel igpu, and blender lags horribly even when just moving around a cube. I have tried to investigate the problem by running blender from xterm, it outputs this: `../src/intel/isl.c:2236: FINISHME: ../src/intel/isl.c:isl_surf_supports_ccs: CCS for 3D textures is disabled but a workaround is available.` I've looked into the problem further and it stems from blender devs deprecating opencl (keep in mind blender works fine on windows!) Looking into the ccs thing and isl.c i could not find a single mention of that anywhere, i've only seen unrelated dev manuals I am lost. the blender manual doesnt say anything. or i havent looked hard enough i dont know, Also i have tried the methods of lowering memory cache limit and others but nothing seems to work. Also i would ask in the blender forum normally, but this seems to be freebsd only as i havent seen this problem on linux nor windows Thanks ---------------------------------------------------------------------- EstablishmentBig7956 · 2023-05-12 23:20 So you're finding blender very sluggish in FreeBSD? Me too. So I don't use it anymore in FreeBSD. ---------------------------------------------------------------------- the_humeister · 2023-05-13 00:10 Use Blender in Linux/Windows. GPU driver support is going to be much better there, especially for GPU rendering. ---------------------------------------------------------------------- Cold_Survey1998 · 2023-05-13 12:16 Huh, [isl.c is a mesa graphics driver](https://gitlab.freedesktop.org/ mesa/mesa/-/blob/main/src/intel/isl/isl.c). The problem according to the original message is line 2236 which is `const struct isl_surf *mcs_surf = hiz_or_mcs_surf;`. I dont know what all of this means to be honest. [There was someone who fixed the problem by making a swap file -blender related-](https://projects.blender.org/blender/blender/issues/97629). [also this guy who found out its a problem with opengl (albeit cs:go) and fixed the problem by uninstalling an intel driver (DKMS) and rolling with the vanilla mesa driver.](https://community.intel.com/t5/Intel-ARC-Graphics/Counter- Strike-Global-Offensive-OpenGL-not-working-on-Linux/m-p/1449399) But i dont know if it will work here. ---------------------------------------------------------------------- Cold_Survey1998 · 2023-05-13 12:32 Of course i would use it there. But im a hobbyist and it not working is not going to affect me that much, but it would be nice. ---------------------------------------------------------------------- Cold_Survey1998 · 2023-05-13 12:33 Yeah, getting it to work would be nice. ---------------------------------------------------------------------- EstablishmentBig7956 · 2023-05-13 13:51 Yeah, I asked about that on their website forum and got no response. I think it was faster with FreeBSD 12.x but that was a long time ago and I was using Linux and blender mainly so I don't really remember. Plus FreeBSD blender is still on 4.4.x and it's up to 4.5.1 everywhere else ---------------------------------------------------------------------- Cold_Survey1998 · 2023-05-13 23:53 Problem Fixed! just run `$vblank_mode=0 blender` ---------------------------------------------------------------------- Cold_Survey1998 · 2023-05-13 23:53 Problem Fixed! just run `$vblank_mode=0 blender` ---------------------------------------------------------------------- EstablishmentBig7956 · 2023-05-14 01:17 You're running blender off the cli? Did you try putting that in its desktop file? Cool thanks 👍👍 ---------------------------------------------------------------------- Cold_Survey1998 · 2023-05-14 02:41 I guess you could put it in the desktop file. ​ But i use a wm, so i put it in its menu file. ---------------------------------------------------------------------- EstablishmentBig7956 · 2023-05-14 03:13 Yeah I tried it with the desktop file no go so I put it in a script and run it off cli and that works. I'm using XFCE4 I could try it out in a launcher though. I just thought of that. I'll check it out later. Thanks for the information ---------------------------------------------------------------------- FancTR · 2023-05-14 06:44 Saw your fix. Didn't understand it tho. Blender works fine on ghostbsd-mate (Freebsd 13.1). Edit: using CPU rendering ---------------------------------------------------------------------- Cold_Survey1998 · 2023-05-14 15:41 GhostBSD does this work automatically. Also i dont say that you will come across this problem definetly, some may have and some won't To answer your question, vblank_mode=0 is an option that may not be the default variable, in this case the variable is set to 1 which limits your FPS not to what your gpu is capable of, but to the refresh rate of your monitor (say 60hz), so it limited to 60fps (maybe lower) and that is like a slideshow in blender. ---------------------------------------------------------------------- FancTR · 2023-05-14 15:43 Neat! I'll test this in freebsd too when I get the time. Thanks. ---------------------------------------------------------------------- EstablishmentBig7956 · 2023-05-14 21:17 Hey, how do you write your command line for the menu, and what wm are you using? ---------------------------------------------------------------------- Cold_Survey1998 · 2023-05-16 01:00 Usually you just put the command in the file and it works, i dont know about desktop files that much. ​ As for the wm it is icewm, i just have menumaker create the menu file and i just edit in the vblank\_mode bit before blender. ---------------------------------------------------------------------- EstablishmentBig7956 · 2023-05-16 01:12 Yeah I put that in a launcher and I get an error but using a file and putting it in my bin that's in my path and it works but I still have to use a terminal to start it. I was just looking for a way to get around using the terminal to start it. Thanks. ---------------------------------------------------------------------- EstablishmentBig7956 · 2023-05-16 14:02 let me bug you again, I installed icewm menumaker in the menu ​ menu "Graphics" folder { prog "Bitmap" - bitmap prog "Blender" - blender vblank\_mode=0 ​ \> that does not work menu "Graphics" folder { prog "Bitmap" - bitmap prog "Blender" - vblank\_mode=0 blender \> that stops blender from showing in the menu what do you write? ---------------------------------------------------------------------- Cold_Survey1998 · 2023-05-17 02:32 Hmm Put vblank_mode=0 blender inside quotes By putting it without quotes icewm thinks vblank_mode=0 is a program. ---------------------------------------------------------------------- EstablishmentBig7956 · 2023-05-17 02:51 Okay I tried that with the launcher and it didn't work, but I'll try it again tomorrow ---------------------------------------------------------------------- EstablishmentBig7956 · 2023-05-17 13:22 nope not working. it starts blender but it does not free it up to run like it should . wtf? confusing ---------------------------------------------------------------------- Cold_Survey1998 · 2023-05-20 16:59 This might be more appropriate to put in the menu file: `prog "Blender" - blender "vblank_mode=0 blender"` Try that, and sorry for the late reply