Commit graph

2789 commits

Author SHA1 Message Date
Magnus Norddahl
c8237b0e64 Speed up linedef processing by not relying on a hashmap 2019-12-20 05:12:39 +01:00
Magnus Norddahl
28f01517d3 Trade some memory for speed 2019-12-20 04:50:43 +01:00
Magnus Norddahl
80f815cad9 Fix the error handling: only create one call unless there's an error and only check for errors in functions that can fail 2019-12-20 03:39:06 +01:00
Magnus Norddahl
4274ee2893 Use C++ and SSE code to do matrix math
Avoid copying by passing matrices by reference to RenderDevice
Use fasttrig from GZDoom for faster cos/sin
Don't set matrices unless they changed. Even though the memcmp prevents it from being pushed to OpenGL it is still a waste.
2019-12-19 03:12:44 +01:00
ZZYZX
2bce3f06a4 Flip GDI bitmap in model loading before feeding it to OpenGL 2019-12-18 21:27:09 +02:00
ZZYZX
4de0d96d13 Only set uniform for world matrix if it was the only one that changed 2019-12-18 15:24:54 +02:00
Magnus Norddahl
b19ce39abc Only set uniforms if they changed 2019-12-18 04:22:47 +01:00
Magnus Norddahl
de2e336cb1 Use OpenGL sampler objects 2019-12-18 03:24:09 +01:00
Magnus Norddahl
b70b114a6b Place all vertex buffers in the same GPU vertex buffer so that the 3D scene only contains 2 vertex buffer binds per frame 2019-12-18 02:27:49 +01:00
ZZYZX
b3a4f563e9 Call wglMakeCurrent before SwapBuffers in Windows context implementation 2019-12-18 00:36:13 +02:00
ZZYZX
bd967138f2 Return old code for grid drawing on the renderer side 2019-12-16 08:32:01 +02:00
ZZYZX
4cb6d68c45 Use PBO to stream texture data for software rendering 2019-12-16 06:54:44 +02:00
ZZYZX
5fbedaf8fc Fixed: don't reduce alpha twice in 2D render layers 2019-12-16 04:52:42 +02:00
ZZYZX
19718cd464 Fixed: skybox generated from Doom texture was misplaced 2019-12-16 04:18:19 +02:00
ZZYZX
8ac7e40754 Returned CodeImp's software renderer for line plotting 2019-12-16 04:15:53 +02:00
ZZYZX
2433b8eb0d Removed -f suffixes for floats (not supported on AMD) 2019-12-16 01:17:41 +02:00
ZZYZX
81c8cdeec6 Added credit to Talon1024 & dpJ 2019-12-16 00:27:29 +02:00
ZZYZX
bd6d21773e Deleted SlimDX; returned pre-build event to copy appropriate DevIL version 2019-12-16 00:20:48 +02:00
ZZYZX
eafce14a9a Merge remote-tracking branch 'origin/master' into slimgl_merge 2019-12-16 00:00:01 +02:00
ZZYZX
502b641967 Improved error reporting 2019-12-15 23:53:33 +02:00
ZZYZX
7f09dd2aec Reenabled point filtering in visual mode 2019-12-15 22:47:06 +02:00
biwa
4febbdadf6 Zscript bool user variables are now treated as bool instead of int
Added support for int8, int16, uint, uint8, and uint16 user variables
2019-12-15 20:31:13 +01:00
ZZYZX
99a90512f1 Fixed: depth tested FBO did not work 2019-12-15 18:48:38 +02:00
ZZYZX
6f122d28c3 Fixed: alpha in the plotter was applied twice 2019-12-15 08:09:41 +02:00
ZZYZX
d1ff6bcc36 Fixed: line can be either dotted or smoothed 2019-12-15 07:20:54 +02:00
ZZYZX
ca75897bc5 Make grid dotted again 2019-12-15 03:45:21 +02:00
ZZYZX
d843a61d61 Replaced line intersection with something that does not cause infinite loops 2019-12-15 02:32:02 +02:00
ZZYZX
554ccc442f Fixed plotting from plugins, fixed transformed grid 2019-12-15 01:58:11 +02:00
ZZYZX
24c28e921f Fixed untransformed grid being Y-inverted 2019-12-15 01:16:04 +02:00
biwa
8472e0d07a Draw slope mode: by default slope vertices are now placed with the left mouse button, and drawing a slope is finished with the right mouse button 2019-12-14 23:40:20 +01:00
ZZYZX
83d3796da3 Fixed assembly reference issues in 3DFloorMode 2019-12-15 00:11:15 +02:00
ZZYZX
714bb84204 Implemented alternate fix for Linux paths (2) 2019-12-14 23:52:12 +02:00
ZZYZX
f0aee1e174 Merge branch 'master' into slimgl_merge 2019-12-14 23:50:40 +02:00
ZZYZX
5295f7f590 Implemented alternate fix for Linux paths (to-do: add case-insensitive hack later) 2019-12-14 23:43:20 +02:00
ZZYZX
2c3013f74c Make everything build with VS2015 again 2019-12-14 23:42:44 +02:00
biwa
3f8da3fc70 Stair sector builder: renamen "Single sectors" option to "Single steps". Added option to keep distinct sectors when using single steps 2019-12-14 14:32:33 +01:00
biwa
ee4ac1e4a6 Stair sector builder: prefabs can now be loaded by double-clicking them 2019-12-14 12:18:17 +01:00
biwa
31eaf98cbe Using --- and +++ now also works correctly for the height offset in the edit sector properties dialog 2019-12-14 11:52:46 +01:00
biwa
c9e7551ca3 Added ZScript mixin class support 2019-12-08 01:14:21 +01:00
biwa
2699f5793b Fixed an issue where the ZScript parser aborted with a cryptic error message when encountering a number that was too small or big. It now clamps the value to min/max for the data type and prints a warning 2019-12-03 15:23:49 +01:00
biwa
8824a2bb94 Fixed a bug where the wrong texture/flat with the same name would be displayed in the texture browser when they were loaded from a PK3 or directory 2019-11-30 17:49:21 +01:00
biwa
cbaa0c030c Long names can now used for flats (again) 2019-11-30 17:05:00 +01:00
biwa
490fa56749 - 3D Floor Mode: fixed a bug where orphaned managed control sectors would be overwritten by relocating the control sectors 2019-11-15 22:34:39 +01:00
biwa
e09cf546da - 3D Floor Mode: mode is now only available in Hexen format and UDMF
- 3D Floor Mode: removed non-functional "Spline" checkbox from the Edit Slope Vertex dialog
2019-11-15 21:56:25 +01:00
biwa
af3286031c - Added online help for 3D Floor Mode, Draw Slope Mode, and Slope Mode 2019-11-02 14:50:52 +01:00
biwa
9c900ac363 - Fixed a crash when dragging the mouse in 3D floor mode. Fixes #311. 2019-11-02 12:48:29 +01:00
biwa
ceb4555d6c - Fixed a crash when undoing 3D floor plugin actions while being in visual mode. Fixes #309. 2019-11-01 17:23:41 +01:00
biwa
6c05f1daf0 - Fixed a problem in the 3D floor mode plugin that caused an exception when saving the program preferences. Fixes #310. 2019-11-01 00:21:02 +01:00
biwa
75d6214db5 @ Added some missing files for the tools 2019-10-31 21:34:23 +01:00
biwa
7c7d3cbea4 @ Cleaned up some annoying debug messages in 3D Floor Mode 2019-10-31 21:29:55 +01:00