These are chat archives for highfidelity/hifi

18th
Jul 2017
Midnight
@MidnightRift
Jul 18 2017 03:08
  841 hifi      20   0 3396.7m 129.8m  19.0m R 35.2  6.5   8:14.62 Octree Send Thr
 2345 hifi      20   0 3396.7m 129.8m  19.0m R 33.9  6.5   7:18.52 Octree Send Thr
 2321 hifi      20   0 3396.7m 129.8m  19.0m R 32.9  6.5   6:31.07 Octree Send Thr
 2238 hifi      20   0 3396.7m 129.8m  19.0m S 17.3  6.5   0:53.56 Octree Send Thr
 2365 hifi      20   0 3396.7m 129.8m  19.0m S 16.9  6.5   8:32.43 Octree Send Thr
Any guess why a few crates of "Balls and Marble Collection" would cause huge CPU spikes in these threads
Midnight
@MidnightRift
Jul 18 2017 03:13
35.2
33.9
32.9
17.3
16.9
are the cpu loads of each theread i linked. and it at the top level nearly comsumes 150% of the load on the CPUs from 2 cores on an E-5 @ 3.7ghz.
Sachin Mahapure
@sachinmahapure
Jul 18 2017 18:52
I want to find skyboxes closer to a person. What should I do? Can it be done by only modifying the produced interface build?
Clément Brisset
@Atlante45
Jul 18 2017 18:53
In JS or manually?
Sachin Mahapure
@sachinmahapure
Jul 18 2017 18:53
In JS.
Clément Brisset
@Atlante45
Jul 18 2017 18:54
JavaScript*
Sachin Mahapure
@sachinmahapure
Jul 18 2017 18:54
I mean yes, I added question mark by mistake :)
Clément Brisset
@Atlante45
Jul 18 2017 18:59
You can use Entities.findEntitiesByType to find all the zones around you.
Then check which ones have a skybox URL set and sort them by distance.
Sachin Mahapure
@sachinmahapure
Jul 18 2017 19:00
Can I do the same in files within interface?
Clément Brisset
@Atlante45
Jul 18 2017 19:01
You could, yes.
Are you trying to find out what the current rendered skybox is?
Sachin Mahapure
@sachinmahapure
Jul 18 2017 19:01
I want to find the skybox nearest to a person.
Clément Brisset
@Atlante45
Jul 18 2017 19:02
Ok, should should know though that the skybox nearest to an avatar might not be the one they are seeing.
Sachin Mahapure
@sachinmahapure
Jul 18 2017 19:04
hm
Clément Brisset
@Atlante45
Jul 18 2017 19:06
You could have a big 1000m x 1000m x 1000m you are inside of but 300m away from the center. And have another 10m x 10m x 10m zone right next to you that you are outside of.
That would mean, you would see the skybox of the 1000m zone but the 10m zone would be the closest to you.
What is the end goal if you don't mind me asking?
Sachin Mahapure
@sachinmahapure
Jul 18 2017 19:08
The end goal is to create a skybox changer that responds to "clickDownOnEntity" and "startNearGrab" to choose a new skybox.
Jeff Moyes
@jmo7
Jul 18 2017 19:13
I'm probably just being goofy, but I'm not finding any documentation on how to use the "Console" ("Edit" -> "Console" or Ctrl+Alt+J) and in looking through code I didn't come up with much either. Where could I learn more about it? (I had somebody tell me to "explorer" an object in the "js console" that I want to learn more about but I'm not seeing how to do that). Thanks!
By the way, the object in question is the global Render object and I did do some basic inspection of it but all I come up with is:
"objectName": "",
"cpuRunTime": 2.31,
"enabled": true
Sachin Mahapure
@sachinmahapure
Jul 18 2017 19:17
@Atlante45 Examples could be our existing skyboxes in various domains or various times of day. Should choose a random skybox out of 5 or 6 options.
Clément Brisset
@Atlante45
Jul 18 2017 20:49
@sachinmahapure So you would have some kind of "Skybox controller entity" that you could click on to change the current skybox?
Couple thoughts on this:
1) I don't think this should be done in C++, this sounds like the perfect job for some JS
2) You don't really have to figure out the skybox to change, you could have that button/controller either be parented to the zone it should act on or have the UUID stored in its user data. That way you would know right away what Skybox you should act on.
Jeff Moyes
@jmo7
Jul 18 2017 21:55
-*
Clément Brisset
@Atlante45
Jul 18 2017 21:56
@jmo7 The console is simply a script engine you have a direct access to.
Anything you can do in a script, you can do in the console.
Jeff Moyes
@jmo7
Jul 18 2017 21:58
-78
Clément Brisset
@Atlante45
Jul 18 2017 22:00
?
Jeff Moyes
@jmo7
Jul 18 2017 22:52
oops I think I must have accidentally had something on my keyboard. (There's a lot of stuff on my desk and some of it had fallen on my keyboard. I think it's time to clean my desk off) ;)
Thanks for the answers on the console
Clément Brisset
@Atlante45
Jul 18 2017 22:53
Ahahah, no worries.