Skip to content

Commit

Permalink
Don't prepare to fetch translations unless we actually are going to u…
Browse files Browse the repository at this point in the history
…se them.. In a couple of places in the code.
  • Loading branch information
hrydgard committed Feb 4, 2015
1 parent a8a7adc commit f18f54f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Core/HLE/proAdhoc.cpp
Expand Up @@ -1398,7 +1398,6 @@ int getPTPSocketCount(void) {
}

int initNetwork(SceNetAdhocctlAdhocId *adhoc_id){
I18NCategory *n = GetI18NCategory("Networking");
int iResult = 0;
metasocket = (int)INVALID_SOCKET;
metasocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
Expand All @@ -1412,8 +1411,8 @@ int initNetwork(SceNetAdhocctlAdhocId *adhoc_id){

// Resolve dns
addrinfo * resultAddr;
addrinfo * ptr;
in_addr serverIp;
addrinfo * ptr;
in_addr serverIp;
serverIp.s_addr = INADDR_NONE;

iResult = getaddrinfo(g_Config.proAdhocServer.c_str(),0,NULL,&resultAddr);
Expand Down Expand Up @@ -1456,7 +1455,8 @@ int initNetwork(SceNetAdhocctlAdhocId *adhoc_id){
memcpy(packet.game.data, adhoc_id->data, ADHOCCTL_ADHOCID_LEN);
int sent = send(metasocket, (char*)&packet, sizeof(packet), 0);
changeBlockingMode(metasocket, 1); // Change to non-blocking
if (sent > 0){
if (sent > 0) {
I18NCategory *n = GetI18NCategory("Networking");
osm.Show(n->T("Network Initialized"), 1.0);
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion GPU/GLES/ShaderManager.cpp
Expand Up @@ -738,7 +738,6 @@ Shader *ShaderManager::ApplyVertexShader(int prim, u32 vertType) {
// if (g_Config.bPrescaleUV)
// globalDirty_ &= ~DIRTY_UVSCALEOFFSET;

I18NCategory *gs = GetI18NCategory("Graphics");
if (globalDirty_) {
if (lastShader_)
lastShader_->dirtyUniforms |= globalDirty_;
Expand Down Expand Up @@ -769,6 +768,7 @@ Shader *ShaderManager::ApplyVertexShader(int prim, u32 vertType) {
vs = new Shader(codeBuffer_, GL_VERTEX_SHADER, useHWTransform, VSID);

if (vs->Failed()) {
I18NCategory *gs = GetI18NCategory("Graphics");
ERROR_LOG(G3D, "Shader compilation failed, falling back to software transform");
osm.Show(gs->T("hardware transform error - falling back to software"), 2.5f, 0xFF3030FF, -1, true);
delete vs;
Expand Down
1 change: 1 addition & 0 deletions GPU/GLES/TransformPipeline.cpp
Expand Up @@ -331,6 +331,7 @@ void TransformDrawEngine::SubmitPrim(void *verts, void *inds, GEPrimitiveType pr
Flush();
}
}
Flush();

This comment has been minimized.

Copy link
@LunaMoo

LunaMoo Feb 4, 2015

Collaborator

@hrydgard I think this might be causing some performance issues? Check http://forums.ppsspp.org/showthread.php?tid=14538

This comment has been minimized.

Copy link
@unknownbrackets

unknownbrackets Feb 4, 2015

Collaborator

Umm, yeah, that should kill performance... I'm sure it was an accident.

-[Unknown]

This comment has been minimized.

Copy link
@hrydgard

hrydgard Feb 4, 2015

Author Owner

Ooops, that was not intentional! I'll revert.

}

void TransformDrawEngine::DecodeVerts() {
Expand Down

0 comments on commit f18f54f

Please sign in to comment.