Commit graph

297 commits

Author SHA1 Message Date
ZZYZX
044dbbcfd0 Rewrote dynamic light support. Resolves #319. Resolves #318. Resolves #233. 2020-01-03 03:22:33 +02:00
ZZYZX
961b5fdb33 Actually fixed PK3 synchronization 2019-12-31 13:46:30 +02:00
ZZYZX
fa053bc097 Prevent closing the PK3 stream before read operation has completed 2019-12-31 13:35:43 +02:00
Magnus Norddahl
f6dd787f0d Present maps slightly faster to the user 2019-12-30 06:41:52 +01:00
Magnus Norddahl
c95e5af46d Reduce memory usage during preview image loading 2019-12-30 06:22:32 +01:00
Magnus Norddahl
65fdafafd8 Fix TransformPatch using bitmap from the main thread 2019-12-29 23:24:08 +01:00
Magnus Norddahl
03e50615f6 Remove explicit image unloading and fix previews 2019-12-29 22:59:57 +01:00
Magnus Norddahl
f97f2d36b1 Remove preview manager and remove CreateTexture 2019-12-29 20:48:11 +01:00
ZZYZX
5dc2ab7b28 Supposedly fixed sprites not loading if reloaded resources from visual mode 2019-12-29 19:59:52 +02:00
ZZYZX
12fd006c61 Removed dynamic resource reloading for resource writing 2019-12-29 16:38:53 +02:00
ZZYZX
58d2d67e77 Do not try to continuously reload failed textures 2019-12-29 14:25:53 +02:00
Magnus Norddahl
d46c72b04a Refactor the ImageData load code so that the UI thread requires no locks 2019-12-29 03:54:12 +01:00
ZZYZX
78fe6c306e Fixed UI thread becoming unresponsible in case of missing textures 2019-12-28 20:12:22 +02:00
Magnus Norddahl
af3d74d186 Fix DevIL crash by protecting it with a mutex lock
Use the .net framework image loaders if they work. They do for the sane formats (PNG and JPEG) and they are faster, too.
Enable usage of multiple threads for resource loading now that it no longer crashes
2019-12-27 07:45:44 +01:00
Magnus Norddahl
11b5cb4e8f Fix crash if entering 3D mode early
Remove thread priority settings (this is not the right way to do it)
Stop brain dead busy looping and use Monitor.Wait + Monitor.Pulse
Only call Control.Invoke if its a worker thread calling RunOnUIThread
Add the code for running multiple background threads (unfortunately blocked by DevIL apparently not being thread safe, gg!)
2019-12-27 07:21:43 +01:00
Magnus Norddahl
7e0ea54254 Don't use SendMessage when the built-in Invoke function does the same 2019-12-27 04:37:10 +01:00
ZZYZX
19718cd464 Fixed: skybox generated from Doom texture was misplaced 2019-12-16 04:18:19 +02:00
ZZYZX
f0aee1e174 Merge branch 'master' into slimgl_merge 2019-12-14 23:50:40 +02:00
biwa
cbaa0c030c Long names can now used for flats (again) 2019-11-30 17:05:00 +01:00
Magnus Norddahl
9f2c9e00d7 Add mono makefile 2019-08-29 16:30:49 +02:00
Magnus Norddahl
9d02676f8f - fix wrong uniform state 2019-08-22 22:59:27 +02:00
Magnus Norddahl
64cc7d2bc2 - implement the fixed function fog 2019-08-22 18:43:54 +02:00
Magnus Norddahl
c914aadcaa - simplify texture binding 2019-08-17 03:21:11 +02:00
Magnus Norddahl
c88b94e1c9 - render to texture bug fixes 2019-08-17 03:08:34 +02:00
Magnus Norddahl
9b53939f0c - simplify vertex buffer and vertex format 2019-08-16 13:07:57 +02:00
Magnus Norddahl
8ea439a5c2 - fix some rendering problems in visual mode 2019-08-15 14:49:49 +02:00
Magnus Norddahl
a542385cd7 - force texture and buffer updating to go through RenderDevice 2019-08-15 02:52:21 +02:00
Magnus Norddahl
b41cb07eaa - Hook up texture creation and binding 2019-08-14 13:51:05 +02:00
Magnus Norddahl
1d09a0f86a - implement ApplyUniforms 2019-08-14 12:36:33 +02:00
Magnus Norddahl
14fd3c96e1 - remove Things2DShader, World3DShader, Effect and EffectShader 2019-08-13 04:12:04 +02:00
Magnus Norddahl
3fae1e9ef3 - add RenderDevice bindings 2019-08-10 00:46:51 +02:00
Magnus Norddahl
e3740033fc - rename classes with D3D in them 2019-08-09 23:22:16 +02:00
Magnus Norddahl
407cc703b8 - implement enough of BuilderNative for GZDB to successfully run without crashing 2019-08-09 23:15:48 +02:00
Magnus Norddahl
c665bfca86 - remove SlimDX namespace 2019-08-08 18:24:33 +02:00
Magnus Norddahl
8f15e8d5e7 - Simplify code 2019-08-08 07:10:35 +02:00
Magnus Norddahl
21b46010c1 Merge remote-tracking branch 'origin/master' into slimgl 2019-08-08 04:07:00 +02:00
Magnus Norddahl
3cff90d716 - remove SlimDX.Direct3D9 namespace 2019-08-08 03:51:21 +02:00
Magnus Norddahl
1be047d316 - Simplify D3DDevice 2019-08-08 03:19:11 +02:00
biwa
dde8742ff2 - Added support for Wavefront OBJ models
- Fixed a problem where model textures were not loaded from the textures directory or from TEXTUREx definitions. Fixes #173 and #226
2019-06-15 17:44:02 +02:00
biwa
48af52afcf - Improved performance of the texture browser. This should significantly reduce the times it takes to open the texture browser when using large texture sets 2019-05-31 00:20:12 +02:00
ZZYZX
b026e58a89 Added: MODELDEF #include support 2018-06-09 17:26:03 +03:00
jewalky
0b14bdeec1
GZDB native 64-bit binary support (PR#197 by StrikerMan780) 2018-04-14 16:55:21 +03:00
ZZYZX
10167038ae Fixed: on a second thought, let's just make FileImageReader fall back to guessed image if possible... 2018-03-31 14:01:36 +03:00
ZZYZX
f7c2a577e4 Fixed: made more correct checking for legal file formats; now it should actually validate the format upon loading 2018-03-31 13:38:30 +03:00
ZZYZX
abdacb32df Fixed: flats are now unconditionally detected as Doom Flat if they are exactly 4096 bytes long and inside F_ markers or flats directory. (reported by Chickenlegz) 2018-03-31 13:07:41 +03:00
ZZYZX
e7328e4caa Added support for non-1.2 pixel ratios if view stretching is enabled (reported by Nash); Fixed: map names in quotes were not recognized properly. 2017-08-27 08:10:22 +03:00
ZZYZX
04324cd140 Fixed (?) cross-thread bitmap usage. (reported by Xane123) 2017-05-09 06:06:21 +03:00
ZZYZX
a2c9de393e Fixed: changing flat names around is wrong... (reported by Lud) 2017-04-03 20:40:51 +03:00
ZZYZX
ee28f1d094 Made Skulltag item sprites optional to support default Skulltag+Zandronum config without producing 100 errors 2017-03-09 19:09:08 +02:00
ZZYZX
f97c15ae95 Fixed: Internal: made most 'get' calls in WADReader use synchronized MemoryStream duplicate as opposed to operating on WAD stream directly. Hopefully fixes multithreading issues with sprite loading. (reported by Mysterious Haruko, camaxide) 2017-03-03 20:33:40 +02:00