mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Don't use separate texture compression context.
Previously it was needed, as saving could be made at the same time the UI was active. Currently saving blocks UI access to data structures, as it possibly may need to sort unsorted vectors.
This commit is contained in:
parent
925a23a053
commit
d555256546
@ -7269,7 +7269,6 @@ void Worker::Write( FileWrite& f, bool fiDict )
|
|||||||
if( sz != 0 ) f.Write( m_data.appInfo.data(), sizeof( m_data.appInfo[0] ) * sz );
|
if( sz != 0 ) f.Write( m_data.appInfo.data(), sizeof( m_data.appInfo[0] ) * sz );
|
||||||
|
|
||||||
{
|
{
|
||||||
TextureCompression texcomp;
|
|
||||||
sz = m_data.frameImage.size();
|
sz = m_data.frameImage.size();
|
||||||
if( fiDict )
|
if( fiDict )
|
||||||
{
|
{
|
||||||
@ -7292,7 +7291,7 @@ void Worker::Write( FileWrite& f, bool fiDict )
|
|||||||
{
|
{
|
||||||
const auto& fi = m_data.frameImage[i];
|
const auto& fi = m_data.frameImage[i];
|
||||||
const auto fisz = fi->w * fi->h / 2;
|
const auto fisz = fi->w * fi->h / 2;
|
||||||
const auto image = texcomp.Unpack( *fi );
|
const auto image = m_texcomp.Unpack( *fi );
|
||||||
memcpy( sdata+offset, image, fisz );
|
memcpy( sdata+offset, image, fisz );
|
||||||
ssize[i] = fisz;
|
ssize[i] = fisz;
|
||||||
offset += fisz;
|
offset += fisz;
|
||||||
@ -7329,7 +7328,7 @@ void Worker::Write( FileWrite& f, bool fiDict )
|
|||||||
f.Write( &fi->w, sizeof( fi->w ) );
|
f.Write( &fi->w, sizeof( fi->w ) );
|
||||||
f.Write( &fi->h, sizeof( fi->h ) );
|
f.Write( &fi->h, sizeof( fi->h ) );
|
||||||
f.Write( &fi->flip, sizeof( fi->flip ) );
|
f.Write( &fi->flip, sizeof( fi->flip ) );
|
||||||
const auto image = texcomp.Unpack( *fi );
|
const auto image = m_texcomp.Unpack( *fi );
|
||||||
f.Write( image, fi->w * fi->h / 2 );
|
f.Write( image, fi->w * fi->h / 2 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user