-
Notifications
You must be signed in to change notification settings - Fork 127
Appearance Weakrefs #1815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
wixoaGit
merged 95 commits into
OpenDreamProject:master
from
amylizzle:appearanceRefCounts
Jan 5, 2025
Merged
Appearance Weakrefs #1815
Changes from 2 commits
Commits
Show all changes
95 commits
Select commit
Hold shift + click to select a range
0cd7159
well it compiles...
amylizzle 8dd14ad
plus one for you
amylizzle b985a60
work you fucker
amylizzle f2bf4b1
close, but no cigar
amylizzle a3d195d
gotcha
amylizzle 68c058e
linter and cleanup
amylizzle 24651fb
fine, be like that
amylizzle f32412a
break everything
amylizzle 8487c93
I am confused and bewlidered
amylizzle f40b43b
Merge branch 'master' into appearanceRefCounts
amylizzle 8839dfd
Merge branch 'master' into appearanceRefCounts
amylizzle b9fcfc9
lint
amylizzle 189d3ef
more lint
amylizzle b96cf5e
Merge branch 'master' into appearanceRefCounts
amylizzle 1b03b2d
gross
amylizzle 1fb5f03
move a couple broken tests
amylizzle b2bb950
lint
amylizzle 93df5d4
more lint
amylizzle 6d8e331
Merge remote-tracking branch 'upstream/master' into appearanceRefCounts
amylizzle 6e1a02d
Update OpenDreamRuntime/Rendering/ServerAppearanceSystem.cs
amylizzle 79826de
Merge branch 'master' into appearanceRefCounts
amylizzle a5e76dd
area appearance, but memory churn
amylizzle 0216403
Merge branch 'master' into appearanceRefCounts
amylizzle be94ae0
immutable start
amylizzle 45a66c6
nobody keeps iconappearances anymore, only ids
amylizzle ab2ecfc
moreeee
amylizzle faa731d
faster area appearance editing
amylizzle d414565
bits
amylizzle 294e84b
most of lists
amylizzle e6ea8e3
server compiles
amylizzle 8b32fec
that is surprisingly not that broken
amylizzle 2f9a7e6
fix order of ops on sprite creation
amylizzle cd5268b
fix turfs
amylizzle 9eb2e54
fix one test
amylizzle d84c875
oops
amylizzle 85ffe1c
weakrefs motherfucker
amylizzle ca1f6b7
bugs
amylizzle bd3f0e1
fixed it
amylizzle 1561128
tracking down weird bugs
amylizzle 5a991da
half done turf & area anims
amylizzle fc84fe9
Merge branch 'master' into appearanceRefCounts
amylizzle e2cd921
/mutable_appearance
amylizzle ed74230
fix colormatrix hashes
amylizzle babc6fe
enormous amount of linting
amylizzle b2d76af
missed one
amylizzle 9db67b0
missed another
amylizzle 2674ef7
gross
amylizzle 774880a
move tests to integrated test
amylizzle 04bee7d
don't love this
amylizzle 9cc8285
Merge branch 'master' into appearanceRefCounts
amylizzle 0485fe2
you know what? this PR should be larger
amylizzle 897b62d
fun adventures in abusing networking
amylizzle b1f59e1
idk why this is necessary
amylizzle fea8e19
Merge branch 'master' into appearanceRefCounts
amylizzle 16ca9de
overlays are confusing
amylizzle 4391316
Overlays are immutable
amylizzle f5e4c14
shoulda just done it this way the first time
amylizzle db99b72
housekeeping
amylizzle bf40bba
fix a couple runtimes on paradise
amylizzle f4d793d
add turf anim test
amylizzle 7d98138
need to make animated turfs have their own id somehow
amylizzle 80da1ea
turf animations can go in another PR
amylizzle aa3a990
fixed it!
amylizzle 4bc02c7
Merge branch 'master' into appearanceRefCounts
amylizzle e367a0f
reduce churn
amylizzle ea79f29
oh that should be locked
amylizzle 104fa56
Merge branch 'master' into appearanceRefCounts
amylizzle 02d4001
try caching mutables on the client?
amylizzle 47a644c
just use immutables instead of doing shitloads of copying
amylizzle 100150e
fix dir inheritence
amylizzle 3d3feb9
remove that
amylizzle c18de10
don't double copy appearances
amylizzle c63f765
Merge branch 'master' into appearanceRefCounts
amylizzle 2a11400
fix client image bugs
amylizzle f69f4be
Merge remote-tracking branch 'upstream/master' into appearanceRefCounts
amylizzle 6945e90
fix merge
amylizzle dd9bb44
Merge branch 'master' into appearanceRefCounts
amylizzle b8ea258
Merge branch 'master' into appearanceRefCounts
amylizzle ccd1651
rename appearances
amylizzle 425cf9b
no more hashes
amylizzle 7e75397
lint roller
amylizzle de0e32d
try a thing
amylizzle b0b3981
Merge branch 'master' into appearanceRefCounts
amylizzle 13b01fd
fix failing to GC
amylizzle ed8b9f0
remove collect call
amylizzle 52c6f55
remove the TTL queue
amylizzle ab39b71
Only register movables' appearances when in PVS range
wixoaGit 719f315
fix
amylizzle dce94c8
Add the ability to debug turf icons
wixoaGit 3a8c33b
Fix off-by-one in turf icon debugging
wixoaGit 5593112
Update the area overlay when changing a turf's area
wixoaGit 732301b
Mark `ColorMatrix.Equals()` as pure
wixoaGit 4b548c5
Make MutableAppearance disposable, allowing for pooling
wixoaGit 26be28e
Code cleanup
wixoaGit 1e54318
Fix some NREs
wixoaGit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,27 +1,14 @@ | ||
| using OpenDreamShared.Dream; | ||
| using OpenDreamShared.Rendering; | ||
|
|
||
| namespace OpenDreamRuntime.Rendering { | ||
| [RegisterComponent] | ||
| public sealed partial class DMISpriteComponent : SharedDMISpriteComponent { | ||
| [ViewVariables] | ||
| public ScreenLocation? ScreenLocation { | ||
| get => _screenLocation; | ||
| set { | ||
| _screenLocation = value; | ||
| Dirty(); | ||
| } | ||
| } | ||
| private ScreenLocation? _screenLocation; | ||
|
|
||
| [ViewVariables] public IconAppearance? Appearance { get; private set; } | ||
|
|
||
| public void SetAppearance(IconAppearance? appearance, bool dirty = true) { | ||
| Appearance = appearance; | ||
|
|
||
| if (dirty) { | ||
| Dirty(); | ||
| } | ||
| } | ||
| } | ||
| namespace OpenDreamRuntime.Rendering; | ||
| [RegisterComponent] | ||
|
||
| public sealed partial class DMISpriteComponent : SharedDMISpriteComponent { | ||
| [ViewVariables] | ||
| [Access(typeof(DMISpriteSystem))] | ||
| public ScreenLocation ScreenLocation; | ||
|
|
||
| [Access(typeof(DMISpriteSystem))] | ||
| [ViewVariables] public IconAppearance? Appearance; | ||
| } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.