Bill Currie
ce16750b04
Cache the max_edicts value in the progs struct.
...
Makes checks a little easier.
2012-07-09 15:06:42 +09:00
Bill Currie
0aac004c98
Rearrange the edict related fields of progs_t.
2012-07-09 15:04:12 +09:00
Bill Currie
e91b06a144
Better name for the edict count parameter to PR_LoadProgsFile.
2012-07-09 15:02:49 +09:00
Bill Currie
fc88c829bc
Disable fbdev for now.
...
By default, anyway. It doesn't work and only distracts users.
2012-07-09 12:06:59 +09:00
Bill Currie
37260018a2
Acutally use the vertex colors for alias models.
...
Thanks to Spirit trying QF on nvidia drivers, the missing attributes were
found. Now he shouldn't get gl errors :)
2012-07-08 16:52:13 +09:00
Bill Currie
7b3242843f
Add a missing dependency to INSTALL
...
The joys of building a fresh system... :)
2012-07-08 07:12:46 +00:00
Bill Currie
a6d9f5d931
Fix a parallel make issue.
2012-07-06 12:35:50 +09:00
Bill Currie
20ad50407d
Correct the size adjustment for qwe's newstr.
...
It seems the correct interpretation is that the size parameter includes the
trailing 0 (going by mvdsv source).
2012-07-06 10:53:24 +09:00
Bill Currie
d4f4e450e6
Fix the bogus loading plaque when disconnected (nq).
2012-07-06 10:44:29 +09:00
Bill Currie
a558f1b0f4
Re-enable the location marker code.
...
Drawing is controlled via the cl_draw_locs command. Entities are still
drawn, but that might not be such a bad thing after all.
2012-07-06 10:39:28 +09:00
Bill Currie
dbbd6f4535
Fix a couple of missing particle function pointers.
...
Discovered while getting the location markers working again.
2012-07-06 10:18:05 +09:00
Bill Currie
3519931b78
Limit beams to one per entity.
...
Note that this is only a soft-limit and prevents excessive beams when only
one is expected. If more beams are desirned, just use 0 for the entity
number.
2012-07-06 08:29:21 +09:00
Bill Currie
66ef8e16c1
Fix the ghost entities in demo playback.
...
Really, when cl_nodelta is in effect (eg, .qwd demo recording and thus
playback). QW now uses the new shared entity state block as I'd intended.
Thanks to the cleanup of ghost entities (ie, entities that have been
removed but continue to be rendered), glsl overkill has gone from 157 to
163 fps :)
2012-07-05 19:06:35 +09:00
Bill Currie
428d57b7e1
Don't attemt fullbright processing for an unavailable skin.
...
In the end, it turns out this is the correct fix for the gl seg on
overkill, because build_skin will correctly use the fully setup player skin
if the glskin doesn't have a texture associated with it.
2012-07-05 10:30:41 +09:00
Bill Currie
80bc0e9fb8
Make nq and qw use the new entity state struct.
...
This isn't really the best solution, but it does get things being shared
with the minimum of fuss.
2012-07-05 09:39:16 +09:00
Bill Currie
dea2f48477
Move entity_state_t into client/entities.h
...
Also, start working on the shared entity manager.
2012-07-05 09:39:16 +09:00
Bill Currie
b65c41efcb
Move the colormod lookup table into a new lib.
...
libQFclient is now here :) The first shared code is the lookup table.
2012-07-05 09:39:16 +09:00
Bill Currie
49f7d1ad6d
Fix the bogus entity scales in the gl render.
...
It seems none of the other renderers support entity scale...
2012-07-03 20:07:18 +09:00
Bill Currie
ef9e8d05c4
Avoid some unnecessary state changes.
...
Doesn't make much difference but it doesn't hurt.
2012-07-03 18:20:32 +09:00
Bill Currie
ee1cb24e3d
Move the call to R_SetFrustum to gl_R_SetupFrame.
...
This was meant to be part of the previous commit, but I forgot to write the
file :P
2012-07-03 16:08:12 +09:00
Bill Currie
a8e0bcabf9
Call R_SetFrustum in all renderers.
...
It turns out glsl, sw and sw32 weren't getting any benefit from R_CullBox
because the frustum wasn't setup :P. Get another 8% out of bigass1
(174->184fps). bigass1 now runs 2x as fast as it did before I started this
optimisation run :)
2012-07-03 15:57:33 +09:00
Bill Currie
e58cd75660
Bound r_maxdlights properly.
...
QF's implementation doesn't support more than 32 dlights (32 bit int).
2012-07-03 15:27:48 +09:00
Bill Currie
eefefb79b0
Rename char_queue to draw_queue.
2012-07-03 14:45:16 +09:00
Bill Currie
b25de4d995
Rewrite the 2d code to use a scrap.
...
This severely reduces the calles to BindTexture, and more importantly,
glUseProgram, EnableVertexAttribArray etc. The biggest changes are:
o icons and text are all in the one giant texture
o icons and text are mixed in the one queue
This gave ~9% speedup for bigass1 (159->174fps).
2012-07-03 13:38:35 +09:00
Bill Currie
df35b22af4
Parameterize the linear filtering of scrap textures.
2012-07-03 12:10:24 +09:00
Bill Currie
e170f4ee75
Slightly reducde the number of calls to glUniformMatrix4fv.
...
It doesn't make a big difference to bigass1 (yet ?), but it does clean up
apitrace a little.
2012-07-03 10:57:35 +09:00
Bill Currie
1a1b406e5b
Fix timedemo in qw.
...
td_lastframe needs to be a float in qw. It seems the meaning changed from
nq to qw, but that's rather bogus. I need to look further into juat what's
going on, but at least now timedemo works.
2012-07-02 20:59:03 +09:00
Bill Currie
1a6b56b0a2
Call glTexSubImage2D only once per frame.
...
Instead of once per surface... ouch. Gives about 20% speed boost on demo1
(154.7->185.7)
2012-07-02 20:01:28 +09:00
Bill Currie
602cd84e21
FIx some player color issues found by valgrind.
2012-07-02 19:24:39 +09:00
Bill Currie
8fa92bf206
Add 32 button support to sdl and win as well.
...
The world isn't x11 (much as I'd like it to be)
2012-07-02 16:51:14 +09:00
Bill Currie
7cd8806ec0
Add support for up to 32 mouse buttons.
...
My new mouse reports only up to 9 (skipping 6 and 9, it seems), but I
/have/ seen 32 button mice...
2012-07-02 16:33:57 +09:00
Bill Currie
3d56084f59
Fix a memory leak.
...
Entity/Edict leafs weren't being freed when the entity was freed.
2012-07-01 09:05:16 +09:00
Bill Currie
7573c38122
Create qfspritegen based on id's sprgen.
...
No guarantees it works, but it should be able to convert a bunch of pcx
images into a sprite.
2012-06-30 20:20:15 +09:00
Bill Currie
4da3be5cd6
Get a minor speed gain in glsl bsp rendering.
...
About 4% (99.5 to 104.4) from not calling VertexAttrib4fv or BindTexture
when not necessary.
2012-06-29 22:13:20 +09:00
Bill Currie
249eb8e5d2
Bah, more segfaults :P
2012-06-29 20:26:27 +09:00
Bill Currie
cf48d5ab04
Make "playdemo" without args replay the last demo.
2012-06-29 18:44:42 +09:00
Bill Currie
7eaa6b72d6
Spawn a green dlight for chatting players.
...
It's not very big, and shows as green only in gl, but at least there's some
indication until I sort out icons etc.
2012-06-29 18:00:21 +09:00
Bill Currie
891500ac58
Fix yet another segfault.
...
Yet more bugs related to the change to using info key direct access :P
2012-06-29 18:00:21 +09:00
Bill Currie
39241867bb
Pass the chat info key onto clients.
...
The server's info key filtering is "explicit permit".
2012-06-29 18:00:21 +09:00
Bill Currie
baa0948bcb
Set the chat info key to the appropriate value on key_dest change.
2012-06-29 18:00:21 +09:00
Bill Currie
603fe92cba
Add a callback for when key_dest is set.
2012-06-29 18:00:21 +09:00
Bill Currie
52146947c1
First part of chat info support.
...
The idea is to allow other clients know when the player is chatting,
fiddling with the console, etc.
2012-06-29 18:00:21 +09:00
Bill Currie
a3fe8d56b8
Don't broadcast name changes for spectators.
...
At the request of freewill. There might be a better mechanism, though...
2012-06-29 15:13:03 +09:00
Bill Currie
0d9d777086
Fix Win32 package building for recent changes.
2012-06-29 11:15:11 +09:00
Bill Currie
3406cad99a
Many distcheck fixes.
...
Yay, bitrot :P
2012-06-29 10:49:21 +09:00
Bill Currie
edf4ea84a1
Update the doxygen config for 1.8
2012-06-28 18:01:17 +09:00
Bill Currie
bf00009cc8
A touch of whitespace cleanup.
2012-06-28 16:12:06 +09:00
Bill Currie
276b6f9662
Add support for sv_antilag (from fteqw).
...
I'm not 100% certain it actually works, but it doesn't seem to have broken
anything :)
2012-06-28 16:03:56 +09:00
Bill Currie
40da338674
Change SV_ClipToLinks's clip.type to be flags.
...
More feature swiping from fte: the flags are needed for antilag, but I
thought I'd grab the related features (mainly linking) while I was at it.
2012-06-28 15:09:49 +09:00
Bill Currie
64bfde7320
Allow extension builins to override standard builtins.
2012-06-28 15:07:03 +09:00