These are chat archives for arenanet/api-cdi

20th
Apr 2018
Archomeda
@Archomeda
Apr 20 2018 01:40
image.png
first testing is a success, but not sure about the object structure though 🤔
took some inspiration from discord
Archomeda
@Archomeda
Apr 20 2018 02:13
hooked up everything and it works surprisingly enough
not sure about lag though
camera and character position updates are insane
Ryan Mast
@nightlark
Apr 20 2018 05:24
are you just continually pushing out camera/character position updates?
Archomeda
@Archomeda
Apr 20 2018 05:36
Yeah
I probably have to throttle that a bit
Ryan Mast
@nightlark
Apr 20 2018 05:41
I had some performance issues when sending it too fast.
numbers only updated every frame, I think
Archomeda
@Archomeda
Apr 20 2018 06:27
Yeah, they do
I'm unsure if it actually affects performance that much. This is still debug mode. The Mumble link loop is running in its own thread that calls all this stuff.

this_thread::sleep_for(chrono::milliseconds(20)); // Update rate: 50/s

well, the thread is forced with 50/s, if no delays occur... hmm

Archomeda
@Archomeda
Apr 20 2018 07:00
Alright, moved that thread to use a mutex and a condition variable instead, since I have access to the D3D9 present call anyway
And right now I don't notice any performance hit when running in release mode
need some more testing
ChieftainAlex
@ChieftainAlex
Apr 20 2018 20:49
So what's this witchcraft with mumble and websocket doing? Exposing character locations? (It would be amazing to plot the entire gw2 community on a heat map)
Archomeda
@Archomeda
Apr 20 2018 21:05
Yeah, integrating it with my addon loader
Maybe, maybe, we might be able to convince some people at anet to allow us to expose more this way
Archomeda
@Archomeda
Apr 20 2018 21:19
But I need to implement an authorization system first
Don't want to expose everything by default