mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Temporary menu threading toggle for testing purposes
This commit is contained in:
parent
f0cf7a84a9
commit
2d6f0566de
@ -1218,7 +1218,7 @@ void gGraphView::paintGL()
|
||||
//ax=px;//-m_offsetX;
|
||||
|
||||
bool threaded;
|
||||
if (m_idealthreads>1) {
|
||||
if (pref["EnableGraphSnapshots"].toBool() && (m_idealthreads>1)) {
|
||||
threaded=true;
|
||||
} else threaded=false;
|
||||
|
||||
@ -1288,7 +1288,9 @@ void gGraphView::paintGL()
|
||||
//glDisable(GL_DEPTH_TEST);
|
||||
|
||||
swapBuffers(); // Dump to screen.
|
||||
qDebug() << "Graph Draw" << time.elapsed() << "ms" << m_idealthreads << "threads";
|
||||
int thr=1;
|
||||
if (threaded) thr=m_idealthreads;
|
||||
qDebug() << "Graph Draw" << time.elapsed() << "ms," << thr << "threads";
|
||||
}
|
||||
|
||||
// For manual scrolling
|
||||
|
@ -566,7 +566,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>668</width>
|
||||
<height>25</height>
|
||||
<height>24</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
@ -739,7 +739,7 @@
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Display Crashy Snapshots</string>
|
||||
<string>Enable Multithreading</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Warning: Enabling this feature may require you to either hand edit the Preferences.xml or delete SleepyHeads data folder.
|
||||
|
Loading…
Reference in New Issue
Block a user