- 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
|
|
@ -256,19 +256,7 @@ void FRandom::StaticReadRNGState (PNGHandle *png)
|
|||
// This is for use by DECORATE.
|
||||
extern FRandom pr_exrandom;
|
||||
|
||||
class NewRNGList : public TArray<FRandom*>
|
||||
{
|
||||
public:
|
||||
~NewRNGList()
|
||||
{
|
||||
for(unsigned i=0;i<Size();i++)
|
||||
{
|
||||
delete (*this)[i];
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
static NewRNGList NewRNGs;
|
||||
static TDeletingArray<FRandom *> NewRNGs;
|
||||
|
||||
FRandom *FRandom::StaticFindRNG (const char *name)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue