Skip to content

Commit

Permalink
update readme for v1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rkc0d3r committed Jan 28, 2023
1 parent e10ecae commit 6110335
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
## Next Version
## v1.9
### Features
* Multiple performance improvements that reduce the time it takes to optimize an avatar by a factor of around 2x.

### Changes
* Instead of doing a `AssetDatabase.Refresh()` to import the optimized shaders it now uses `ImportAsset()` inside a `StartAssetEditing()` and `StopAssetEditing()` block. This saves a tiny bit of time.
* Replaced two heavily used regex with string and char operations. This saves a tiny bit of time.
* Replaced two heavily used regex with string and char operations. This saves a bit of time.
* Moved most of the generated shader code into include files. This saves a lot of time when importing the shaders.
* Strip `[Drawer]` attributes from the generated shader code. This saves a significant amount of time when assigning the shader to a material.

Expand Down
Binary file modified ExampleImages/exportMaterial0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ExampleImages/exportMaterial1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ Shaders can do a lot of *weird* things, therefore the optimizer is bound to fail

You can also tell the optimizer to ignore certain parts of the model with the "Exclusions" foldout.
Finally you can try to make a bug report and maybe I'll be able to fix it.
For that select the material and export it as `.unitypackage`.
You can find it in the `d4rkAvatarOptimizer/TrashBin` folder:
For that export the `d4rkAvatarOptimizer/TrashBin` folder as a unity package like so:
![Export Material](./ExampleImages/exportMaterial0.png)
Then in the next dialog select only the material and shader files in the TrashBin folder like so:
Then in the next dialog uncheck the "Include dependencies" checkbox and click "Export":
![Export Material](./ExampleImages/exportMaterial1.png)
Once you have the `.unitypackage` file, please make a bug report on the [issue tracker](https://github.com/d4rkc0d3r/d4rkAvatarOptimizer/issues).

Expand Down

0 comments on commit 6110335

Please sign in to comment.