vgstation13 icon indicating copy to clipboard operation
vgstation13 copied to clipboard

A New Dawn :tm:

Open ShiftyRail opened this issue 2 years ago • 26 comments

For real this time. Maybe.

I know what to try next. Using this for test-serb purposes.

ShiftyRail avatar Jun 07 '22 19:06 ShiftyRail

prepare for unforeseen consequences genuinely

ghost avatar Jun 07 '22 20:06 ghost

https://www.youtube.com/watch?v=xtrqYdvZ29E&t=110s

Eneocho avatar Jun 08 '22 00:06 Eneocho

The performance is pretty smooth. Two things I noticed testing it out is that there are some erratic shadows, pictured below, and also, when you hold a lamp and walk into a dark area, the emitted light will jump a little bit in front of you and snap to the nearest tile, while your sprite will move smoothly.

europa21 europa1

Hinaichigo avatar Jun 09 '22 02:06 Hinaichigo

I don't remember those wacky shadows from the previous tests. I mean they still had wacky shadows, but not exactly those ones

Exxion avatar Jun 09 '22 02:06 Exxion

Is it possible that it can vary with drivers/OS?

Hinaichigo avatar Jun 09 '22 03:06 Hinaichigo

I doubt it, but maybe. But he probably just did more work on it.

Exxion avatar Jun 09 '22 03:06 Exxion

I don't get wacky shadows while testing on my end, so it might be an emerging effect after some time passes and some unknown interactions occur.

image

This is how this area looks like on my end.

ShiftyRail avatar Jun 09 '22 07:06 ShiftyRail

@Hinaichigo out of curiosity, what's your BYOND version? Shadows relies a lot on render_source things so it might be why it's different client to client.

ShiftyRail avatar Jun 09 '22 08:06 ShiftyRail

Version 514. I'm not sure how to view the minor version number. It's running in a w10 VM hosted on linux. I disabled 3D acceleration in the virtualbox settings and it fixed the shadows, but it also made the performance a lot worse, similar to the previous time it was up on the test server.

Hinaichigo avatar Jun 09 '22 14:06 Hinaichigo

Linux

might explain it Try the latest minor just to see

ShiftyRail avatar Jun 09 '22 18:06 ShiftyRail

Updating to the latest minor, with 3D acceleration turned on, it has somewhat choppy performance and the shadow glitch remains. I wonder if this issue is related. It's recent, so maybe it'll be fixed in an upcoming version.

Hinaichigo avatar Jun 09 '22 20:06 Hinaichigo

Playing on Linux through Wine, I don't see any of those weird shadows, though I do notice rather shit performance, particularly around the bridge. I notice that the client profiler says that basically all of the time taken is in one particular step. I wonder if it's possible to optimize it somewhat. Not necessarily a large concern if the performance issues aren't on Windows, though.

Exxion avatar Jun 09 '22 23:06 Exxion

Finally got Wine set-up and it actually runs a lot more smoothly, maybe a little bit of slowdown near the brig. And the glitched shadows seem to be fixed.

The border of the table (where the glass is) still seems a little off somehow: europa3

The issue with the flashlight light jumping out ahead also seems somewhat less stark at proper framerates. Also, it seems like "disable flashlight" is broken on the PDA: if you disable the flashlight it doesn't turn off until you put it into your backpack.

Overall it looks really nice aesthetically.

Hinaichigo avatar Jun 10 '22 02:06 Hinaichigo

The performance is pretty smooth.

yeah about that... this still crawls to 8fps (about 15 flares per tile) image

ghost avatar Jun 10 '22 15:06 ghost

Oh no way it gets laggy if someone makes a lagmachine

Exxion avatar Jun 10 '22 15:06 Exxion

Not to be a critic, I like the lighting. There's several particles that still need lighting though, like fireball, and a bunch of others. The roulette revolver provides a wide array of various ones that need lighting.

Though perhaps objects like flares should be handled differently to avoid lag.

Not sure if this was tested, but turning on all lights seems to make it a little sluggish? Maybe it's just me

adacovsk avatar Jun 10 '22 16:06 adacovsk

I notice that the client profiler says that basically all of the time taken is in one particular step. I wonder if it's possible to optimize it somewhat.

What step is that? Also, how do you view that?

Hinaichigo avatar Jun 10 '22 16:06 Hinaichigo

What step is that? Also, how do you view that?

Don't remember the name exactly. Something about grouping and setting bounds, I think. If you're playing under Wine, you probably need admin abilities to do it, because you need to be able to right click the title bar and select an option there to do it normally. With admin, you can select profiler under the server dropdown at the top left, and click the client tab on that window.

Exxion avatar Jun 10 '22 17:06 Exxion

Anyway, as for client lag, moving lights shouldn't be significantly laggier than stationary lights. They're much heavier on the server, though.

Exxion avatar Jun 10 '22 17:06 Exxion

There's several particles that still need lighting though, like fireball, and a bunch of others. The roulette revolver provides a wide array of various ones that need lighting.

One step at a time.

ShiftyRail avatar Jun 11 '22 08:06 ShiftyRail

Fixed an issue someone reported with cult buildings, + an attempt at making lights move smoothly

ShiftyRail avatar Jun 11 '22 16:06 ShiftyRail

What's the actual aim of this P.R.? You didn't describe it at all. What does it add?

Cartlord avatar Jun 13 '22 10:06 Cartlord

What's the actual aim of this P.R.? You didn't describe it at all. What does it add?

The latest attempt to make EuropaLights work. See #31641, #31620, #30497 and #29551.

Eneocho avatar Jun 13 '22 11:06 Eneocho

After testing out Wine for a little bit, there are also various issues (not with lighting, but in general) that aren't present when running in a VM, though using Wine is smoother performance wise. I know Linux isn't officially supported, but since it works pretty well now, and a few players, in addition to myself, use a Windows VM from what I understand, it would be nice if breaking compatibility could be avoided, in terms of both performance and the lighting system.

Edit: After using Wine a bit more it is way smoother and things look nicer. Although there are still some issues here and there.

Hinaichigo avatar Jun 13 '22 20:06 Hinaichigo

Any updates on this one @ShiftyRail? Is the dream of fancy lights dead?

Eneocho avatar Sep 02 '22 11:09 Eneocho

Should probably close this, as hopefully my darkness and planes PR will be merged and would result in horrible conflicts. Also the test server doesn't even work so you can't even test the lights anymore.

adacovsk avatar Sep 30 '22 21:09 adacovsk

when

SonixApache avatar May 31 '23 17:05 SonixApache

holy fuck, a year?

ShiftyRail avatar Jun 05 '23 17:06 ShiftyRail

holy fuck, a year?

is it ready yet

Inorien avatar Jun 24 '23 12:06 Inorien

Quality shiftycode

xeroxemnas avatar Jul 25 '23 14:07 xeroxemnas