Yamagi Burmeister
70ee5bcc4a
Revert "Rework GLimp_GetRefreshRate(), fix a stupid bug."
...
After some pondering I realised that the changes was stupid. It
introduces some new subtile bugs, for example in some cases SDL
still rounds 59.95hz down to 59hz...
2018-09-30 18:42:21 +02:00
Yamagi Burmeister
95bbb9900b
Rework GLimp_GetRefreshRate(), fix a stupid bug.
...
In the old world GLimp_GetRefreshRate() was called once at renderer
startup. Now in the new world with SDL 2.0 only it's called every frame
and thus the target framerate git increased by one every frame... That
lead to subtile timin problem in case that the vsync is enabled.
While here remove the hack added for some Windows GPU drivers by AMD.
Older versions returned 59 on 59.95hz displays, leading to small timing
problems. This is fixed in newer version so we don't need to work around
it. Removing the hack gives us somewhat more overall timing precision.
If someone really needs the hack vid_displayrefresh can be set to 60 to
get the old behaviour.
2018-09-08 19:05:10 +02:00
Yamagi Burmeister
3c349d6078
Bump version number to 7.31pre.
2018-09-05 17:17:47 +02:00
Yamagi Burmeister
a6b85eaac8
Bump version number to 7.30.
2018-09-05 17:17:28 +02:00
Yamagi Burmeister
a896e17efa
Fix a compiler warning, do not assign a variable to itself.
2018-09-05 17:07:42 +02:00
Yamagi Burmeister
edabb03051
Update CHANGELOG for 7.30.
2018-09-05 14:54:56 +02:00
Yamagi Burmeister
ca1f9a17d9
Don't name the component licenses, let the licenses speak for themself.
2018-09-05 14:53:10 +02:00
Yamagi
7b0bcec11e
Merge pull request #317 from 0lvin/render_speedup_review
...
Cleanup code in soft render
2018-09-05 14:39:24 +02:00
Denis Pauk
c45e1e7f8c
correct check for zstep
2018-09-04 22:51:20 +03:00
Yamagi Burmeister
0caefdecf2
Always print the full help for the 'ogg' command.
2018-09-04 14:17:49 +02:00
Denis Pauk
6adc4cc81c
Revert "rename gl_anisotropic to r_anisotropic"
...
This reverts commit 49af62477a
.
2018-09-03 21:22:01 +03:00
Denis Pauk
ff6a40ee8c
Revert "restore whitespaces"
...
This reverts commit dc3da331f5
.
2018-09-03 21:21:12 +03:00
Denis Pauk
e265252170
Remove unused function parameter
2018-09-03 21:16:36 +03:00
Denis Pauk
a52db8bc85
support for lower version of SDL
2018-09-03 21:16:05 +03:00
Denis Pauk
1a0c6fe05c
add check for overwrite triangle_spans
2018-09-03 21:15:58 +03:00
Denis Pauk
3b4c6c41c1
get rid separate surface usage
2018-09-03 21:15:51 +03:00
Denis Pauk
136d6890ff
small cleanups
2018-09-03 21:15:40 +03:00
Denis Pauk
aa3a688495
remove all aliases for vid.width
2018-09-03 21:15:33 +03:00
Daniel Gibson
67bb061741
Add missing newline in message printed by --help cmdline arg
2018-09-03 04:31:14 +02:00
Yamagi Burmeister
f15d4181eb
Do not throw last 12 seconds of a Vorbis file away when looping.
...
Until now we just called OGG_Stop() as soon as we read the last samples
from a Vorbis files. OGG_Stop() flushed all unplayed samples (about 12
seconds of playback) from the OpenAL playback queue... Instead just set
our internal state of STOPPED, open the next file and be done.
2018-09-02 09:39:57 +02:00
Denis Pauk
01ca7db6f4
remove unused functions
2018-08-28 23:22:40 +03:00
Denis Pauk
2812ef30dd
Reuse GLimp_InitGraphics for create window
2018-08-28 23:22:40 +03:00
Denis Pauk
8fc5bafb64
move render prepere staff to separate function
2018-08-28 23:22:40 +03:00
Denis Pauk
f1bf4d2b44
Directly use of currentpalette
...
* remove conversion currentpalette to SDL pixel format
* create textures with RGBA format with same struct as currentpalette
2018-08-28 23:22:40 +03:00
Yamagi
7b86bddab5
Merge pull request #316 from makson96/master
...
Use CMake 'GREATER' instead of 'GREATER_EQUAL'.
2018-08-28 17:21:24 +02:00
makson96
88e0d21cf0
Use CMake 'GREATER' insted on 'GREATER_EQUAL'
2018-08-26 20:46:55 +02:00
Yamagi Burmeister
25a1f08656
Merge branch 'buildcleanup'
2018-08-15 17:48:30 +02:00
Yamagi
135b243b74
Merge pull request #314 from 0lvin/render_speedup_review
...
Render speedup
2018-08-15 17:41:23 +02:00
Denis Pauk
dc3da331f5
restore whitespaces
2018-08-14 20:37:21 +03:00
Yamagi Burmeister
1aef881f27
Update the README to match reality.
2018-08-14 15:37:20 +02:00
Yamagi Burmeister
692c544f30
Some modernizations to cmake.
...
* Pass the same compiler flags like make.
* Update FindSDL2.
* Remove unneeded FindOggVorbis.
There still some options missing, like the RPATHes or he ability to
define the system wide installation directory.
2018-08-14 15:29:41 +02:00
Yamagi Burmeister
f7e80c1428
General cleanup to the Makefile.
2018-08-14 15:01:45 +02:00
Yamagi Burmeister
93aa8270ad
No need to print that the renderer as retexturing support.
...
Retexturing support has been non-optional for years.
2018-08-14 11:53:35 +02:00
Yamagi Burmeister
cf09fb2a99
Remove support for static linked OpenAL.
...
We haven't used that for years and it just complicates things.
2018-08-14 11:51:55 +02:00
Yamagi Burmeister
daf3dc6f41
Remove ZIP compile time option.
...
Having ZIP optional only complicates things and is unnecessary now that
the dependency to zlib is gone.
2018-08-14 11:12:38 +02:00
Yamagi Burmeister
0264c6d946
Remove DOGG compile time option.
...
Having OGG optional only complicates things and is unnecessary now that
the dependencies to libvorbis and libogg are gone.
2018-08-14 10:40:50 +02:00
Denis Pauk
49af62477a
rename gl_anisotropic to r_anisotropic
2018-08-10 23:33:46 +03:00
Denis Pauk
ba38bf4f88
Small cleanups
...
* Use window width as maximum value for spancount
* Reuse GLimp_Shutdown
2018-08-10 23:04:19 +03:00
Denis Pauk
6e8170e187
Check possible span scan step by zindex
2018-08-10 22:59:29 +03:00
Denis Pauk
59133c77aa
use zvalue_t for z values
2018-08-10 22:59:29 +03:00
Denis Pauk
48f67501fc
Fix pitch compare vid.width
2018-08-10 22:59:29 +03:00
Denis Pauk
6affc10ceb
use only one increment in loop
2018-08-10 22:59:29 +03:00
Denis Pauk
0d69454b54
revert nack a little
2018-08-10 22:59:29 +03:00
Denis Pauk
a3406b38a3
use memset for copy pixel to pixel range
2018-08-10 22:59:29 +03:00
Denis Pauk
51e09331e2
get rid extern aliastriangleparms
2018-08-10 22:59:28 +03:00
Denis Pauk
61d7b187c0
make more varibles local
2018-08-10 22:59:28 +03:00
Denis Pauk
3c89fec026
fix comments
2018-08-10 22:59:28 +03:00
Denis Pauk
861e47c26e
use short names for D_DrawTurbulentSpan
2018-08-10 22:59:28 +03:00
Denis Pauk
3ed798ae70
use func params instead static variables
2018-08-10 22:59:28 +03:00
Denis Pauk
f1b8571369
Use common step for span scanning
2018-08-10 22:59:28 +03:00