Commit Graph

39 Commits

Author SHA1 Message Date
Eduardo Bart 392acc0b43 Try to fix compilation for gcc 4.6 [2] 2013-03-06 15:40:47 -03:00
Eduardo Bart 69f72b9c86 Try to fix compilation for gcc 4.6 2013-03-06 13:05:46 -03:00
Eduardo Bart 44bf4dcb6e Fix ubuntu compile errors 2013-03-05 02:54:08 -03:00
Eduardo Bart 1dd558d57e Revert "Use boost::thread instead of std::thread"
This reverts commit 71b5c5f2e4.
2013-03-05 01:47:23 -03:00
Eduardo Bart 71b5c5f2e4 Use boost::thread instead of std::thread 2013-03-04 23:06:00 -03:00
Eduardo Bart 0be7bd5360 Implement async dispatcher #221 2013-03-04 18:56:22 -03:00
Eduardo Bart dc3559a5c0 Fix hotkey bug and compile error on Mac 2013-02-26 17:50:08 -03:00
Henrique Santiago a8c175452b Pt translations 2013-02-23 20:15:12 -03:00
Eduardo Bart e4e3d7d053 New platform APIs and new OpenAL cmake 2013-02-22 16:53:49 -03:00
Eduardo Bart 8d6ccb8d83 Fixes to compile with clang 2013-01-29 14:35:20 -02:00
Eduardo Bart 773837da98 Minor changes in file type handling 2013-01-27 23:23:53 -02:00
Eduardo Bart 773d093e68 Add missing file 2013-01-16 16:54:20 -02:00
Eduardo Bart 62cd3d04e1 Update sound engine with some sound fixes
* Refactor client module
2013-01-16 16:46:42 -02:00
Eduardo Bart 122577a916 Just rename some files
* Fix a server ping issue
2013-01-08 16:32:05 -02:00
niczkx 092876d0e1 more fixes to compiling with gcc 4.6 2012-08-03 15:03:34 -06:00
Eduardo Bart 3bac3dcbb4 Rework stdext classes
Implement new classes:
* stdext::any => ligher replacement for boost::any
* stdext::packed_any => like any but optimized to use less memory
* stdext::shared_object => ligher replacement for std::shared_ptr
* stdext::shared_object_ptr => replacement for boost::intrusive_ptr
* stdext::fast_storage => for storing dynamic data
* stdext::packed_storage => same but with less memory
* stdext::packed_vector => std::vector with less memory

Compiling should be a little faster now because global boost including
is not needed anymore
2012-08-01 09:23:35 -03:00
Eduardo Bart fbb3c9933a Fix audio stopping on buffer underruns 2012-07-31 00:12:04 -03:00
niczkx 4c369bc823 fix compiling on gcc 4.6 (too early to use 4.7.1...) 2012-07-30 18:52:30 -06:00
Eduardo Bart 03b8241bbc Rename stdext::shared_object_ptr to compile in gcc 4.6 2012-07-30 12:08:21 -03:00
Eduardo Bart 73769c62e4 Just some refactoring 2012-07-29 07:32:54 -03:00
Eduardo Bart e0431021b5 Huge engine change, replace all std::shared_ptrs
Create a new shared pointer type stdext::shared_object_ptr and stdext::shared_obj
using boost::intrusive_ptr

Advantages:
 * half memory usage
 * faster and lightweight

Disadvantages:
 * using weak_ptr is not supported anymore
 * compiling seems slower
2012-07-29 00:34:40 -03:00
Eduardo Bart c795eb91ab More multiprotocol support 2012-07-26 03:10:28 -03:00
Eduardo Bart b0e6b3b8fb Update item OTBM attributes reader
* Fix some lua errors generated by playMusic
* Fix possible crash when starting otcliet without dat loaded
2012-07-18 05:34:17 -03:00
Eduardo Bart cb1848d48d Fix error in start/stop music 2012-07-17 22:22:21 -03:00
Eduardo Bart aed779a2c8 doc and luabinder changes 2012-06-22 00:14:13 -03:00
Eduardo Bart c5674d10ba some refactoring 2012-06-21 20:58:18 -03:00
Eduardo Bart 1c5b906b5b some optimizations 2012-06-02 11:43:27 -03:00
Eduardo Bart 14db1066fc change logger 2012-06-01 17:39:23 -03:00
Eduardo Bart bd2faabe99 graphics optimization feature inspirated by diablo3 engine
* the rendering now consits of two panes
- the background pane (for animated stuff like the map)
- the foreground pane (for steady stuff, like UI)
each pane has it own max FPS and works idependently
this may increase graphics performance on many platforms
2012-06-01 16:39:09 -03:00
Eduardo Bart c01b32b032 rework log function and protocol
* remove some protocol ifdefs, replace with game features system
2012-05-28 19:04:44 -03:00
Eduardo Bart e7030a4995 ... 2012-05-14 09:29:16 -03:00
Eduardo Bart e2dd71185b fixes for OpenGL ES platforms 2012-05-13 09:48:19 -03:00
Eduardo Bart 9aa12acc22 performance improvements
* no more freezes because of file IO from hard disk, now we cache sound/spr file buffers
* more opengl painter tweaks
2012-04-24 18:05:46 -03:00
Eduardo Bart fe33614c3a fix memory leak in sound stream 2012-04-15 08:00:13 -03:00
Eduardo Bart c3eae3ba06 bind sound functions and add sample startup music 2012-04-14 11:19:58 -03:00
Eduardo Bart 8e679f2da7 get stereo audo working on linux 2012-04-14 10:15:51 -03:00
Eduardo Bart ae67c6adbc drop usage of threads in sound system 2012-04-14 06:53:32 -03:00
Eduardo Bart cb7bd521d2 fix compilation on win32 2012-04-13 21:14:25 -03:00
Eduardo Bart c4525059ce implement basic sound engine using OpenAL 2012-04-13 16:54:08 -03:00