2019-01-02 21:25:01 +00:00
|
|
|
[package]
|
2019-04-12 09:22:37 +00:00
|
|
|
name = "veloren-voxygen"
|
2020-08-14 10:25:43 +00:00
|
|
|
version = "0.7.0"
|
2019-08-04 19:54:08 +00:00
|
|
|
authors = ["Joshua Barretto <joshua.s.barretto@gmail.com>", "Imbris <imbrisf@gmail.com>"]
|
2019-01-02 21:25:01 +00:00
|
|
|
edition = "2018"
|
2019-05-27 20:51:42 +00:00
|
|
|
default-run = "veloren-voxygen"
|
2020-01-09 06:05:20 +00:00
|
|
|
# Cargo thinks it should build the voxygen binary even when a specific bench is specified for building
|
|
|
|
# Uncomment below and comment out default-run if you want to avoid this
|
|
|
|
# autobins = false
|
2019-01-02 21:25:01 +00:00
|
|
|
|
2019-01-07 21:10:31 +00:00
|
|
|
[features]
|
2020-07-02 20:10:22 +00:00
|
|
|
gl = ["gfx_device_gl", "gfx_gl"]
|
2019-10-11 12:19:55 +00:00
|
|
|
singleplayer = ["server"]
|
2020-03-19 17:19:05 +00:00
|
|
|
tweak = ["const-tweaker"]
|
2020-06-17 07:49:14 +00:00
|
|
|
hot-anim = ["anim/use-dyn-lib"]
|
2019-01-07 21:10:31 +00:00
|
|
|
|
2019-10-29 06:55:45 +00:00
|
|
|
default = ["gl", "singleplayer", "msgbox"]
|
2019-01-07 21:10:31 +00:00
|
|
|
|
2019-01-02 21:25:01 +00:00
|
|
|
[dependencies]
|
2019-01-12 15:57:19 +00:00
|
|
|
common = { package = "veloren-common", path = "../common" }
|
|
|
|
client = { package = "veloren-client", path = "../client" }
|
2019-01-02 21:25:01 +00:00
|
|
|
|
2020-06-17 07:49:14 +00:00
|
|
|
anim = { package = "veloren-voxygen-anim", path = "src/anim", default-features = false }
|
|
|
|
|
2019-01-02 21:25:01 +00:00
|
|
|
# Graphics
|
2019-11-05 11:14:39 +00:00
|
|
|
gfx = "0.18.2"
|
2019-09-08 15:15:46 +00:00
|
|
|
gfx_device_gl = { version = "0.16.2", optional = true }
|
2020-07-02 20:10:22 +00:00
|
|
|
gfx_gl = { version = "0.6.1", optional = true }
|
2020-03-13 04:05:06 +00:00
|
|
|
old_school_gfx_glutin_ext = "0.24"
|
2020-07-13 05:14:32 +00:00
|
|
|
glutin = "0.24.1"
|
2020-03-13 04:05:06 +00:00
|
|
|
winit = { version = "0.22.2", features = ["serde"] }
|
2020-02-08 03:26:17 +00:00
|
|
|
conrod_core = { git = "https://gitlab.com/veloren/conrod.git" }
|
|
|
|
conrod_winit = { git = "https://gitlab.com/veloren/conrod.git" }
|
2020-06-01 00:13:35 +00:00
|
|
|
euc = { git = "https://github.com/zesterer/euc.git" }
|
2019-01-02 22:08:13 +00:00
|
|
|
|
2019-03-19 14:12:42 +00:00
|
|
|
# ECS
|
2020-07-09 17:46:30 +00:00
|
|
|
specs = { git = "https://github.com/amethyst/specs.git", rev = "7a2e348ab2223818bad487695c66c43db88050a5" }
|
|
|
|
specs-idvs = { git = "https://gitlab.com/veloren/specs-idvs.git", branch = "specs-git" }
|
2019-03-19 14:12:42 +00:00
|
|
|
|
2019-01-02 22:08:13 +00:00
|
|
|
# Mathematics
|
2020-08-07 21:50:27 +00:00
|
|
|
vek = { version = "0.12.0", features = ["platform_intrinsics", "serde"] }
|
2019-01-07 21:10:31 +00:00
|
|
|
|
2020-03-10 21:00:13 +00:00
|
|
|
# Controller
|
|
|
|
gilrs = { version = "0.7", features = ["serde"] }
|
|
|
|
|
2019-09-15 20:41:47 +00:00
|
|
|
# Singleplayer
|
|
|
|
server = { package = "veloren-server", path = "../server", optional = true }
|
2019-06-04 19:57:13 +00:00
|
|
|
|
2019-01-07 21:10:31 +00:00
|
|
|
# Utility
|
2019-07-28 15:47:14 +00:00
|
|
|
glsl-include = "0.3.1"
|
2019-11-05 11:14:39 +00:00
|
|
|
failure = "0.1.6"
|
2020-06-01 00:13:35 +00:00
|
|
|
dot_vox = "4.0"
|
Fix map image artifacts and remove unneeded allocations.
Specifically, we address three concerns (the image stretching during
rotation, artifacts around the image due to clamping to the nearest
border color when the image is drawn to a larger space than the image
itself takes up, and potential artifacts around a rotated image which
accidentally ended up in an atlas and didn't have enough extra space to
guarantee the rotation would work).
The first concern was addressed by fixing the dimensions of the map
images drawn from the UI (so that we always use a square source
rectangle, rather than a rectangular one according to the dimensions of
the map). We also fixed the way rotation was done in the fragment
shader for north-facing sources to make it properly handle aspect ratio
(this was already done for north-facing targets). Together, these fix
rendering issues peculiar to rectangular maps.
The second and third concerns were jointly addressed by adding an
optional border color to every 2D image drawn by the UI. This turns
out not to waste extra space even though we hold a full f32 color
(to avoid an extra dependency on gfx's PackedColor), since voxel
images already take up more space than Optiion<[f32; 4]> requires.
This is then implemented automatically using the "border color"
wrapping method in the attached sampler.
Since this is implemented in graphics hardware, it only works (at
least naively) if the actual image bounds match the texture bounds.
Therefore, we altered the way the graphics cache stores images
with a border color to guarantee that they are always in their own
texture, whose size exactly matches their extent. Since the easiest
currently exposed way to set a border color is to do so for an
immutable texture, we went a bit further and added a new "immutable"
texture storage type used for these cases; currently, it is always
and automatically used only when there is a specified border color,
but in theory there's no reason we couldn't provide immutable-only
images that use the default wrapping mdoe (though clamp to border
is admittedly not a great default).
To fix the maps case specifically, we set the border color to a
translucent version of the ocean border color. This may need
tweaking going forward, which shouldn't be hard.
As part of this process, we had to modify graphics replacement to
make sure immutable images are *removed* when invalidated, rather
than just having a validity flag unset (this is normally done by
the UI to try to reuse allocations in place if images are updated
in benign ways, since the texture atlases used for Ui do not
support deallocation; currently this is only used for item images,
so there should be no overlap with immutable image replacement,
so this was purely precautionary).
Since we were already touching the relevant code, we also updated
the image dependency to a newer version that provides more ways
to avoid allocations, and made a few other changes that should
hopefully eliminate redundant most of the intermediate buffer
allocations we were performing for what should be zero-cost
conversions. This may slightly improve performance in some
cases.
2020-07-29 16:29:52 +00:00
|
|
|
image = { version = "0.23.8", default-features = false, features = ["ico", "png"] }
|
2020-06-01 00:13:35 +00:00
|
|
|
serde = "1.0"
|
|
|
|
serde_derive = "1.0"
|
|
|
|
ron = { version = "0.6", default-features = false }
|
2020-07-02 20:10:22 +00:00
|
|
|
guillotiere = "0.5.2"
|
2020-06-01 00:13:35 +00:00
|
|
|
msgbox = { git = "https://github.com/bekker/msgbox-rs.git", default-features = false, rev = "68fe39a", optional = true }
|
2020-07-06 14:23:08 +00:00
|
|
|
directories-next = "1.0.1"
|
|
|
|
num = "0.2"
|
2019-11-05 11:14:39 +00:00
|
|
|
backtrace = "0.3.40"
|
2020-06-01 00:13:35 +00:00
|
|
|
rand = "0.7"
|
2020-08-06 22:53:49 +00:00
|
|
|
treeculler = "0.1.0"
|
2020-07-06 14:23:08 +00:00
|
|
|
rodio = { version = "0.11", default-features = false, features = ["wav", "vorbis"] }
|
|
|
|
cpal = "0.11"
|
2019-11-16 16:55:50 +00:00
|
|
|
crossbeam = "=0.7.2"
|
2020-07-06 07:15:06 +00:00
|
|
|
hashbrown = { version = "0.7.2", features = ["rayon", "serde", "nightly"] }
|
2019-11-05 11:14:39 +00:00
|
|
|
chrono = "0.4.9"
|
2020-01-20 13:37:29 +00:00
|
|
|
bincode = "1.2"
|
2020-01-17 23:43:18 +00:00
|
|
|
deunicode = "1.0"
|
2020-02-29 03:59:11 +00:00
|
|
|
uvth = "3.1.1"
|
2020-08-06 11:40:35 +00:00
|
|
|
# vec_map = { version = "0.8.2" }
|
2020-07-06 14:23:08 +00:00
|
|
|
const-tweaker = { version = "0.3.1", optional = true }
|
2020-08-09 20:30:22 +00:00
|
|
|
itertools = "0.9.0"
|
2019-10-02 14:24:21 +00:00
|
|
|
|
2020-06-21 14:26:06 +00:00
|
|
|
# Logging
|
2020-06-24 12:35:52 +00:00
|
|
|
tracing = "0.1"
|
2020-06-21 21:47:49 +00:00
|
|
|
tracing-subscriber = { version = "0.2.3", default-features = false, features = ["env-filter", "fmt", "chrono", "ansi", "smallvec" , "tracing-log"] }
|
2020-06-21 10:22:26 +00:00
|
|
|
tracing-log = "0.1.1"
|
|
|
|
tracing-appender = "0.1"
|
|
|
|
|
2020-01-07 05:45:43 +00:00
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
2020-01-20 13:37:29 +00:00
|
|
|
dispatch = "0.1.4"
|
2020-01-07 05:45:43 +00:00
|
|
|
|
2019-10-02 14:24:21 +00:00
|
|
|
[target.'cfg(windows)'.build-dependencies]
|
2019-10-04 16:44:31 +00:00
|
|
|
winres = "0.1"
|
2020-01-09 06:05:20 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
criterion = "0.3"
|
2020-07-06 14:23:08 +00:00
|
|
|
git2 = "0.13"
|
2020-01-09 06:05:20 +00:00
|
|
|
world = { package = "veloren-world", path = "../world" }
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "meshing_benchmark"
|
|
|
|
harness = false
|