- Applied a modified version of Karate Chris's screenshot naming patch.
- Sbarinfo optimization: Creating and destroying bar textures every frame is a relatively expensive operation. We can skip the custom texture entirely and just draw the bars directly to the screen, using the clipping parameters for DrawTexture(). This also means bars are no longer limited to the game palette, and the bar itself has the same resolution as the screen. SVN r731 (trunk)
This commit is contained in:
parent
9a785239f2
commit
d1e27e533f
9 changed files with 219 additions and 194 deletions
|
|
@ -101,19 +101,7 @@ struct FDecalAnimator
|
|||
FName Name;
|
||||
};
|
||||
|
||||
class FDecalAnimatorArray : public TArray<FDecalAnimator *>
|
||||
{
|
||||
public:
|
||||
~FDecalAnimatorArray()
|
||||
{
|
||||
for (unsigned int i = 0; i < Size(); ++i)
|
||||
{
|
||||
delete (*this)[i];
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
FDecalAnimatorArray Animators;
|
||||
TDeletingArray<FDecalAnimator *> Animators;
|
||||
|
||||
struct DDecalThinker : public DThinker
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue