jrodrigv / OfCourseIStillLoveYou

Watch all your Hullcam cameras at the same time from everywhere!
GNU General Public License v3.0
14 stars 4 forks source link

Loss of signal when pausing game with Esc or TimeControl #3

Closed EritoKaio closed 3 years ago

EritoKaio commented 3 years ago

Is there a way to keep the cameras streaming even when the game is paused or is it a limitation? I was trying to do camera handovers for different scenes and noticed they lose signal when the game is paused, meaning client loses track of what cameras they had set. (there's no way my PC can handle more than 2 cameras at once even on my 1700X+RTX2070) ocisly_losssignal

jrodrigv commented 3 years ago

When the game is paused there is no streaming happening and after 1 second without receiving any feed, the camera data is deleted because it assumes something went wrong.

EritoKaio commented 3 years ago

Is that the game stopping the streaming or is it just how its coded? Is there a way around it for a future update (no rush :P)? I ask because Waterfall plumes' effects keep running even with the game paused.

jrodrigv commented 3 years ago

I think is game itself, the mod is implemented to never stop streaming unless you press the streaming button or there is no vessel or camera after going RUD. I think the waterfall effects are just an animation and particles.

EritoKaio commented 3 years ago

Ah, gotcha. Ill figure out another way to record without having to do multiple takes. I was hoping running the main game in lower res would increase the overall framerate but didn't, I think I'm just CPU bottlenecked. Thank you! This mod is great.

jrodrigv commented 3 years ago

BTW are you using the release v1.0.98 ? I have improved quite a lot the performance in that version.

EritoKaio commented 3 years ago

Yep, I did notice a small improvement, but its just the amount of stuff I have going on I'm pretty sure. Combined with rendering another 3-4 cameras it drops my game to 10fps. I'll just see if I can speed it up a little after recording without making it look weird. I'll be happy enough if I can keep this shot in the video haha 1qb1bc1a_31bc1

jrodrigv commented 3 years ago

Yes, I understand. To be honest the same happens to me when I try do my crazy thing with RO https://youtu.be/Y_JzKbNrnvw?t=283 The video has been speed up x2 I was getting 10 FPS

EritoKaio commented 3 years ago

Yeah haha, hopefully the devs can improve the game's performance in KSP2 so we can do all the crazy stuff, honestly my nº1 wish for it :P

EritoKaio commented 3 years ago

Actually found a good enough workaround. Using TimeControl I can set the game to super-slow motion, slow enough that im pretty much not moving, but fast enough for the game to give a "frame" often enough for the cameras to not go offline. image

jrodrigv commented 3 years ago

@EritoKaio Would you mind testing the lastest release? I have implemented a fix to recover automatically the streaming after un pausing the game

EritoKaio commented 3 years ago

YEP! Seems to recover on the right window now! Thank you :D 1wS1d2ca_c1d2c

jrodrigv commented 3 years ago

Nice!