Commit Graph

17615 Commits

Author SHA1 Message Date
Benau
b0d0a0739e Add CMake flag to enable / disable recorder 2017-04-04 14:23:04 +08:00
Benau
0bb5bfb930 Don't use dlloaded function in pulseaudio recorder namespace 2017-04-04 12:19:29 +08:00
Benau
ea6719990a Move all recording code into recorder folder 2017-04-04 10:04:55 +08:00
Benau
2d4bfa9fb0 Use shared library for vpx on msvc 2017-04-03 14:32:07 +08:00
Benau
6bc935d085 Try to build 64bit appveyor 2017-04-03 09:20:14 +08:00
Benau
19f88e3939 Allow stk to be built with 64bit msvc
Please use lastest adv_recording_64 branch in repo
2017-04-03 01:33:13 +08:00
Benau
8a5e28251e Fix mingw build 2017-04-02 14:55:55 +08:00
Benau
adf889a885 End vorbis encoder thread more properly 2017-04-02 10:36:21 +08:00
Benau
ab2ce24914 Reduce cpu usage 2017-04-02 10:28:46 +08:00
Benau
9bfe4200c4 Only use TJFLAG_FASTDCT if supported 2017-04-02 00:43:31 +08:00
Benau
7f23d062b7 Use turbo jpeg for compression 2017-04-01 16:41:06 +08:00
Benau
8a8b388170 Allow pulseaudio to be loaded dynamically 2017-04-01 15:21:58 +08:00
Benau
294aa3ad48 Allow recording 16bit pcm data with any channels 2017-04-01 11:02:14 +08:00
Benau
cacbdbd668 Allow recording audio in windows using wasapi 2017-04-01 00:52:38 +08:00
Benau
29d0839162 Move libvpx parameters to user config 2017-03-31 12:22:21 +08:00
Benau
21ff135b04 Merge remote-tracking branch 'origin/master' into advanced_recording 2017-03-31 11:50:24 +08:00
Benau
9039324145 Allow muxing into webm using libwebm 2017-03-30 13:30:21 +08:00
Deve
af98b526d6 Give few more fps in GLES renderer by pre-computing diffuse/specular color 2017-03-28 22:15:33 +02:00
QwertyChouskie
0123228c20 Set menu FPS to 60 (#2823)
Smoother, see https://github.com/supertuxkart/stk-code/issues/2302.
2017-03-27 21:56:20 -04:00
hiker
a3544735db Re-enable caching now that appveyor has downloaded the new dependencies. 2017-03-28 11:00:33 +11:00
hiker
345d9c3ef1 Comment out caching in appveyor config to allow it to download new dependency package. 2017-03-28 10:44:12 +11:00
Benau
df758669d3 Use high resolution timer for AV sync 2017-03-28 00:44:12 +08:00
Deve
0f9151e5d2 Move recording settings to separate group 2017-03-27 00:31:55 +02:00
Deve
075afde636 Fixed kart particles for GLES with disabled advanced lighting 2017-03-27 00:25:39 +02:00
Deve
a7f0d3762c Some fixes for GLES renderer.
- Don't use BGRA format at all. It doesn't work with non-typical cases (i.e. with srgb or compressed textures) and also casues artifacts on some android devices. I kept the extension in central settings, but it probably won't be used.
- Use sRGB texture format when advanced lighting is enabled. This makes it closer to the original OpenGL renderer and also avoids to have even more #ifdef's for sRGB conversions.
- Keep RGBA textures for non-advanced lighting to make it simpler.

Now advanced lighting in GLES looks almost the same as in OpenGL 3.x (without shadows/GI)
2017-03-25 22:23:46 +01:00
Benau
be103dd666 Implement real time vp8 encoding 2017-03-25 16:30:41 +08:00
Deve
5931e20f8b Use highp precision qualifier.
For OpenGL 3.x renderer it only matters for some buggy drivers (i.e old AMD driver that complains about missing precision qualifier). Based on specification is should have no effect and was added for compatibility with GL ES.

In our case vertex and fragment must have the same precision because we use common header for both shader types and the precision for uniform variables must match.
Also "precision highp float;" is defined by default for both vertex and fragment shaders, so it seems to be more proper.

This will hopefully solve the problem with nvidia driver that tries to use f16vec4 instead of just vec4, see:
https://forum.freegamedev.net/viewtopic.php?f=17&t=7397&sid=06682ddb05ee9fbf48a2984d0bd48d5b
2017-03-24 22:21:09 +01:00
Benau
a68c085e95 Use pulseaudio + vorbisenc for sound recording (linux for now) 2017-03-24 21:51:17 +08:00
Marianne Gagnon
8461ffcc68 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2017-03-23 21:03:10 -04:00
Marianne Gagnon
b85d84c9dd Remove outdated Apple-specific code 2017-03-23 21:02:16 -04:00
Benau
372ce6923c Log in terminal if recording isn't supported 2017-03-24 08:51:42 +08:00
Benau
2660a5b332 Allow message queue to be able to do linebreak
Also set "/" and "\" to be breakable
2017-03-23 00:51:50 +08:00
Benau
aecb1a97ce Update license of img.h as Stragus said in IRC
Also remove unneeded file
2017-03-23 00:12:06 +08:00
Benau
81c6735ba2 Fix when getNumProcessors return 0 2017-03-22 20:47:34 +08:00
deve
a3a8289836 Fixed a hang on startup under cygwin 2017-03-22 13:17:04 +01:00
deve
4df773d283 Some fixes in cmake.
Note that you need updated dependencies on windows.
2017-03-22 10:24:33 +01:00
Benau
41e66bef37 Allow keeping target name after changing resolution 2017-03-22 12:44:32 +08:00
Benau
9a69859c8f Fix crash when deleting AVIWriter with file closing 2017-03-22 11:34:42 +08:00
Benau
7e9f723038 Allow recording video with ctrl + printscreen 2017-03-22 10:43:02 +08:00
Benau
4b663a08ce Use array deallocation 2017-03-22 09:58:22 +08:00
Benau
9034d89a31 Add the missing clear() 2017-03-22 09:53:02 +08:00
Benau
58c665efc6 Merge branch 'avi_writer' 2017-03-22 09:14:35 +08:00
Benau
740bf19446 Fix grammar 2017-03-22 09:08:44 +08:00
Benau
6ef70e2e7c Use message queue to inform users about recording status 2017-03-22 09:02:21 +08:00
Benau
2b9a84253a Make MessageQueue thread-safe 2017-03-22 08:40:58 +08:00
Benau
668b28f632 Allow to config whether to limit game framerate with recordings 2017-03-22 07:43:00 +08:00
Benau
196b2b722c Fix mac build 2017-03-22 07:42:48 +08:00
Deve
4ef8ec3af2 Fixed a warning in shaders compilation 2017-03-21 19:42:53 +01:00
Deve
583b858860 Handle #stk_include in better way.
It allows to use it recursively.
2017-03-21 18:41:18 +01:00
Benau
f58cf2d9cc Better handling with thread 2017-03-22 00:39:24 +08:00