I have now a variant of ioquake3 that renders OpenGL Unicode fonts
with FTGL library:

http://www.www0.org/w/Optimized_executable;_builds_of_ioq3_engine_for_urt

It's mainly used to render Google Translation output of chat.

It's partly work in progress but it's at an operational state here.

It has no console input/output support of Unicode since I was mostly
dealing with a closed mod. It appears (according to discussion here)
that would need server/client support and potentially game support.


Sidenotes:

Google translation runs on a new thread with a 'multi' of cURL to
re-use connections and hence minimize both CPU and networking
resources. A previous version was only on cURL 'easies' spawning a
thread each but that was not reusing connections. A 'multi' can also
work without threads relatively block-free, but not completely
block-free, hence I made a hybrid of the two.

It's not easy to make something on ioquake3 thread safe. e.g. Whenever
i want to print something from it I completely avoid Com_Printf (since
it's massively thread unsafe recursively) and only write on a mutex
protected 'to print' variable.

I had previously used pthreads but then went to SDL threads, mutexes
and semaphores to save having to deal with an extra library and
because pthreads doesn't seem that much supported on Windows.
_______________________________________________
ioquake3 mailing list
ioquake3@lists.ioquake.org
http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
By sending this message I agree to love ioquake3 and libsdl.

Reply via email to