Cool VL Viewer forum http://sldev.free.fr/forum/ |
|
Huge CPU-Spikes while zooming in and out http://sldev.free.fr/forum/viewtopic.php?f=6&t=2187 |
Page 1 of 2 |
Author: | DonFranko [ 2021-06-21 18:41:23 ] |
Post subject: | Huge CPU-Spikes while zooming in and out |
Hey there. First of - I'm so glad that cool viewer is still around. I took quite a long pause from SL and was using another viewer but cool viewer is just the coolest and best performing one for my needs. Thanks! But there is one thing that is not so good at least for me. I'm a SL Live Musician and Singer and as I'm routing all my Live Music Setup through my DAW, using a great piano sound that is sucking on my cpu quite heavily, my old Computer is at its performance edges. I'm so happy that cool viewer is still very fast and not so heavy on cpu like the others. But unfortunately there is one "bug" that is not so perfect for me: when I'm zooming in or out in SL or when quite some people join or move in the venues I get really really huge cpu spikes for some seconds. That is not the case with e.g. firestorm viewer. Do you have any ideas why happens? Beside of that I'm still in love with the Coolest Viewer ![]() Thanks in advance! Frank |
Author: | Henri Beauchamp [ 2021-06-21 19:18:53 ] |
Post subject: | Re: Huge CPU-Spikes while zooming in and out |
The viewer attempts to utilize your CPU available cores at the highest level whenever it rezzes new objects and avatars (mesh fetches) and fetches and decodes the corresponding textures: when you cam around, rezzing happens and causes a CPU usage spike; this is in no way a "bug" but the desired behaviour. This ensures the fastest rezzing speed and things go much easier on the CPU once everything is rezzed. If you want slow rezzing, you may disable or tone down several features:
|
Author: | DonFranko [ 2021-06-22 06:17:48 ] | |||||||||
Post subject: | Re: Huge CPU-Spikes while zooming in and out | |||||||||
Many thanks for your fast and very helpful reply Henri!! I'll try that today. |
Author: | DonFranko [ 2023-04-13 16:48:58 ] |
Post subject: | CPU Spikes when new avatars arrive in the radar |
hey there! Unfortunately I have to come back to that heavy CPU-Spike topic, this time when new Avatars arrive in the radar where I'm singing at. I know the problem is only because of my pc and cpu are really old but I managed to still be able to have a good experience even when playing my heavy on cpu Piano vsti's so far. The thing is, that my machine is working on the edge when I do my live shows. That is one important reason (among others of course) why I'm a happy user of the really Cool VLViewer. Merci beaucoup Henri !!! Since Version 1.30.7 (I think) I do have again those heavy CPU usage of the CV what was not the case after my tweaks when it happened the first time. I checked already the proposed tweaks from the older thread (http://sldev.free.fr/forum/viewtopic.php?f=6&t=2187) but that didn't really help so far on the search of the maybe last 15% that avoid me from having strong audio crackles while playing my piano. My questions are: - What have you changed that would cause that in my specific scenario to make me have a look at it? - Would http pipelining turned off help in my case? ( I don't know what that is..) - Would it help to turn OpenGL off? Currently I have OpenGL Profile clicked active. Changing the OpenGL Worker threads didn't help resolving the heavy cpu load that I need to avoid (and during my shows it's not important for me to see the avatars.. in fact.. I only zoom to the stage. so they only get rendered in the background where I cannot see them.) - Image decoder threads .. I just forgot and couldn't find how the logic is behind it. I'm having a 4+4 i7 chip (i7 860 @ 2.80Ghz). What does in the CV mean 1 thread? 1=1 or 1=1+2 (2=1+2 or 2=1+2+3+4) Thanks again in advance for your help! |
Author: | Henri Beauchamp [ 2023-04-13 22:36:33 ] |
Post subject: | Re: Huge CPU-Spikes while zooming in and out |
Same reply as I did before (I also merged the topics, since they deal with the same "issue"). The Cool VL Viewer is optimized to use as much CPU power as it can whenever it needs to rez new things (such as objects and avatars appearing in your camera FOV, or incoming avatars). It is therefore totally normal and the expected and wanted behaviour, that it raises your CPU usage to almost 100% to rez as fast as possible. And the more the time passes and as I will keep squeezing the last CPU clock in my code, the more the viewer will use your CPU to make everything rez and display faster. As I already explained above, you may degrade the performances of the viewer to avoid this: limit the number of threads (one image decoder thread only, no shared GL worker thread, no media plugin read thread), disable all texture fetch boosting features, reduce the maximum number of simultaneous mesh and texture requests, etc... When using the frame rate limiter (which is also a good way to reduce the CPU usage), you may also disable the extra image updates the limiter is doing by setting the new "MaxExtraImagesUpdates" debug setting to 0. As I also already explained, you may use your OS thread affinity settings to limit the number of CPU cores (virtual (SMT) cores or full cores, depending on your CPU: your i7 860 is a 4 full cores, 8 virtual cores CPU, and programs will treat it as a "8-core") used by the viewer, and reserve others for your near-real-time audio application; however, do not expect good results under Windows (which is NOT a real-time OS, by far !), and do not expect your old CPU to perform as well as a modern one could do. If I were you, I'd buy another, cheap or second hand PC to run just your virtual piano, and reserve your current PC to all other tasks (including running the viewer). |
Author: | ZaneZimer [ 2023-04-13 22:59:10 ] |
Post subject: | Re: Huge CPU-Spikes while zooming in and out |
Thread affinity, which Henri mentioned, works quite well at least on my Linux rig. I also use the frame rate limiter, shorter draw distance, limited particles and avatar impostors and a variety of other settings even though I have a robust machine. These may reduce the 'beauty' of the world but if you are performing, how much of that do you really need? You could travel to a heavy attended event/region, when you aren't performing, to come up with the settings that work well for your hardware. Apply those when performing but use more 'rich' settings when you are not. Obviously my opinions/experiences. Your mileage may vary. |
Author: | Henri Beauchamp [ 2023-04-13 23:03:08 ] | |||||||||
Post subject: | Re: Huge CPU-Spikes while zooming in and out | |||||||||
|
Author: | ZaneZimer [ 2023-04-13 23:19:49 ] | ||||||||||||||||||
Post subject: | Re: Huge CPU-Spikes while zooming in and out | ||||||||||||||||||
|
Author: | Henri Beauchamp [ 2023-04-14 07:24:42 ] | |||||||||
Post subject: | Re: Huge CPU-Spikes while zooming in and out | |||||||||
|
Author: | ZaneZimer [ 2023-04-14 08:47:36 ] | |||||||||
Post subject: | Re: Huge CPU-Spikes while zooming in and out | |||||||||
|
Page 1 of 2 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |