Aaron Culliney
db4a71ca6f
Enable Chromium systrace for all platforms
2018-11-24 15:15:34 -08:00
Aaron Culliney
eb13718c5e
Introduce CPU thread function annotation and enforcement
2018-04-22 08:43:16 -07:00
Aaron Culliney
2d5c47d534
Autotools builds on Mac somewhat
2017-08-21 17:56:20 -10:00
Aaron Culliney
85dc4e5132
Move some sources into meta directory
2017-08-19 19:57:23 -10:00
Aaron Culliney
f8b4602fca
Beginning to refactor display and backend video
...
- Futher disentangle display, interface, and video backends
- Backend video owns the staging/intermediate framebuffer for now
- Add the beginnings of display update callbacks
2017-08-06 12:12:12 -10:00
Aaron Culliney
bcbf5ac234
Refactor LOG() facilities
...
- Enable logging to file(s)
- Enable log rotation
- Allow silencing console logging (e.g., to stderr)
2017-07-30 12:24:48 -07:00
Aaron Culliney
153f1434db
Rename GL_ERRLOG() to GL_MAYBELOG()
2017-07-15 15:08:42 -10:00
Aaron Culliney
51a5f5fcf7
Excise ERRLOG() in favor of LOG()
2017-07-15 14:39:15 -10:00
Aaron Culliney
3b1c72e872
Excise RELEASE_LOG() and RELEASE_BREAK() macros
...
- LOG() and assert() work just fine ;)
2017-07-15 14:19:31 -10:00
Aaron Culliney
cb31ccaf9c
Fix a bunch of Clang static analysis issues
2016-09-10 11:32:33 -06:00
Aaron Culliney
cc9a164bec
Audio codepaths now always enabled
...
- Supported platforms:
- Mac/iOS (OpenAL)
- Desktop Linux/POSIX (OpenAL)
- Android (OpenSLES)
- TODO : for POSIX builds we should provide our own "null" audio backend if OpenAL/OpenSL not found by build script
2016-07-23 17:23:54 -07:00
Aaron Culliney
ae75ce2798
Avoid calling glGetError() on thread without OpenGL context
2016-04-23 11:51:02 -07:00
Aaron Culliney
74a5b74ae3
Refactor prefs into JSON publish/subscribe API
...
- Breaking changes currently only tested on Linux desktop build =P
- Goal is to eventually eliminate most/many of the disparate getter/setter functions to allow better
modularity/scaling and platform portability
2016-03-26 13:44:13 -07:00
Aaron Culliney
3120b75e00
Enforce module ctor priorities
2016-02-22 22:41:37 -08:00
Aaron Culliney
5354b0cfd5
First cut at allowing portrait mode (on mobile devices)
2016-02-14 20:18:07 -08:00
Aaron Culliney
261ae2efae
Refactor to not use video_backend in so many places
2016-02-07 14:42:32 -08:00
Aaron Culliney
3089b98a30
For now, enable logging in release builds on Android
2016-01-05 21:39:04 -08:00
Aaron Culliney
abae59767c
Enable simple heap memory fencing/scribbling in debug builds
2015-12-31 22:50:43 -08:00
Aaron Culliney
46c286719f
Fix Android build after Mac iteration
2015-11-14 11:09:33 -08:00
Aaron Culliney
a61fd339a6
Various fixes to get Mac build compiling
2015-11-14 08:01:20 -08:00
Aaron Culliney
2cc23cf35d
Upgrade to GPLv3 "or later" and update copyrights
2015-10-22 21:09:13 -07:00
Aaron Culliney
51f5bc64ba
Expose macro globally
2015-10-04 14:39:53 -07:00
Aaron Culliney
f4fa5670b4
Add function-call time tracing for Linux/Android
2015-10-04 14:22:26 -07:00
Aaron Culliney
ed60b2ea73
Refactor VM initialization and shutdown
2015-09-11 23:03:17 -07:00
Aaron Culliney
704c381ea8
Logging should automatically print function
2015-08-21 23:43:19 -07:00
Aaron Culliney
25b9f3d3f3
Android lifecycle cleanups
...
- Differentiate between cpu_pause() when going to menu (and app is still foregrounded, and cpu_pauseBackground()
when a system backgrounding event has occurred.
- Destroy/free audio resources owned by CPU thread when background is requested, put CPU thread into waiting upon
pthread condition to resume.
- Mobile device now always signals pthread condition to force CPU thread resume from background
2015-07-27 22:36:39 -07:00
Aaron Culliney
7ca4a2646d
Optimize video drawing and API cleanup
...
- Enforces synchronized access to video dirty bit
2015-07-12 14:13:13 -07:00
Aaron Culliney
5f4bf6b1a7
Use single buffer queue callback for OpenSLES/Android
...
- OpenSLES Callback now performs simple mix of 2 sources (speaker and mockingboard)
- Avoids multiple callbacks which was a performance penalty especially for low-end droids
2015-07-12 12:59:49 -07:00
Aaron Culliney
b717e829a7
Override assert() to get messages
2015-07-04 18:08:43 -07:00
Aaron Culliney
2aba9a5ba1
Better OpenSLES backend implementation for Android
...
- Uses buffer values gleaned from Android system
- Removes completely unnecessary playq and uses ringBuffer instead with read/write heads
- ringBuffer includes a certain amount of "overflow" space for callback convenience
2015-07-04 18:01:44 -07:00
Aaron Culliney
a9307aa827
Remove hardcoded sample rate and buffer sizes
...
- Audio backend now specifies the sample rate and min/ideal buffer size for mono and stereo audio
- Increase maximum speaker amplitude
2015-07-02 20:24:59 -07:00
Aaron Culliney
951b4518c1
Expose device-preferred audio parameters to native
2015-06-28 12:49:26 -07:00
Aaron Culliney
0aecc83744
Refactor : shuffle moar code around for clarity
2015-06-20 12:11:53 -07:00
Aaron Culliney
59e95a19b1
Refactor : add annotations to a few more functions
2015-06-14 14:56:53 -07:00
Aaron Culliney
29006f9c5c
path handling cleanups
2015-06-01 22:25:29 -07:00
Aaron Culliney
1126a319ec
Misc tweaks to various GL interface objects
2015-04-26 18:12:56 -07:00
Aaron Culliney
dcd0207525
Fix ctor load priorities
2015-04-17 22:12:13 -07:00
Aaron Culliney
e876cd03b6
REFACTOR : begin consolidating common code for OpenGL HUD interfaces
2015-04-11 11:42:18 -07:00
Aaron Culliney
829ee225e6
Android variant compiles/links
2015-02-17 20:28:23 -08:00
Aaron Culliney
d9ce113aa0
WIP : Android armeabi target compiles
2015-02-16 08:47:26 -08:00
Aaron Culliney
35458b2839
Change LOG() macro to accommodate Android logging
2015-02-16 08:47:26 -08:00
Aaron Culliney
b4516b49df
Add general-use branch-prediction macros
2015-01-23 23:34:03 -08:00
Aaron Culliney
191a1b7395
Fix Mac builds
2015-01-16 21:11:29 -08:00
Aaron Culliney
a24436e88f
Gamepad clamp-beyond-radius implemented
2014-12-05 22:31:12 -08:00
Aaron Culliney
b6e329a3c6
Prevent segfault in glGetError() during app initialization
2014-11-29 13:31:21 -08:00
Aaron Culliney
a2a55d53ed
Fixes for various clang static analyzer issues
2014-10-25 11:53:44 -07:00
Aaron Culliney
d083fa958f
do not use vgl.h, use glUtil.h
2014-10-07 21:26:50 -07:00
Aaron Culliney
6858e51a75
Apple2Mac first cut and refactor common rendering code
...
* Based on NSOpenGLView and Apple's GLEssentials sample code
* CVDisplayLink- or NSTimer-driven rendering
* Works in window or fullscreen mode on Mac OSX Lion or later
TODO FIXME:
* Breaks Linux/Posix build
* Cocoa menu interfaces
* Key/mouse/joystick/gamepad handling
2014-09-30 21:01:58 -07:00
Aaron Culliney
df8ae3d018
First cut at basic OpenGLES 2.0 renderer
...
* Compiles/runs on Linux
* X11 renderer is now deprecated
2014-09-16 21:34:04 -07:00
Aaron Culliney
8621b1ac53
Refactor: macro should be capitalized
2014-09-06 19:47:59 -07:00