mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 05:21:25 +12:00
rsx: Allocate scratch memory using simple array with no default initialize
- This cuts down processing time significantly by eliminating calls to memset_stosb
This commit is contained in:
parent
129e947720
commit
7ec481d99b
2 changed files with 10 additions and 4 deletions
|
@ -25,7 +25,13 @@ namespace rsx
|
|||
public:
|
||||
simple_array() = default;
|
||||
|
||||
simple_array(u32 initial_size, const Ty val = {})
|
||||
simple_array(u32 initial_size)
|
||||
{
|
||||
reserve(initial_size);
|
||||
_size = initial_size;
|
||||
}
|
||||
|
||||
simple_array(u32 initial_size, const Ty val)
|
||||
{
|
||||
reserve(initial_size);
|
||||
_size = initial_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue