Skip to content

Commit

Permalink
Rechange icon, 4GB gfx fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jacks authored and jacks committed Mar 13, 2024
1 parent 0a2f50f commit cfdfaf1
Show file tree
Hide file tree
Showing 6 changed files with 2,050 additions and 427 deletions.
3 changes: 2 additions & 1 deletion whisperer/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions whisperer/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public partial class Form1 : Form, IMessageFilter
string rootdir = Path.GetDirectoryName(Environment.GetCommandLineArgs()[0]);
static ScheduledTasks schedtask = null;
static TaskScheduler.Task tasksched = null;
long largereq = 0;

public Form1()
{
Expand Down Expand Up @@ -468,7 +469,7 @@ void qwhisper(string filename)
if (glbwaittime == 15000)
neededmem = 2400000000;
else if (glbwaittime == 20000)
neededmem = 4300000000;
neededmem = largereq;

while (freemem < neededmem && !cancel)
{
Expand Down Expand Up @@ -720,13 +721,19 @@ void button3_Click(object sender, EventArgs e)
}

glbwaittime = 10000;
largereq = 4300000000;

if (glbmodel.ToLower().Contains("medium"))
glbwaittime = 15000;
else if (glbmodel.ToLower().Contains("large"))
{
glbwaittime = 20000;
if (totmem < 5000000000)
largereq = 3000000000;
}

if ((glbwaittime == 15000 && totmem < 2400000000) ||
(glbwaittime == 20000 && totmem < 4300000000))
(glbwaittime == 20000 && totmem < largereq))
{
ShowError("Insufficient graphics memory for this model!");
return;
Expand Down
Loading

0 comments on commit cfdfaf1

Please sign in to comment.