[no subject]
- From: Tejas Hs <tejashs rocketmail com>
- To: "gtkmm-list gnome org" <gtkmm-list gnome org>
- Date: Thu, 10 Jul 2014 00:13:07 +0800
Hello guys,
I am having some performance issues with Pixbuf, specifically on windows
This is the test program i am using
#include <gtkmm.h>
#include
<iostream>
#include <chrono>
int main(int argc, char *argv[])
{
Glib::RefPtr<Gtk::Application> app =
Gtk::Application::create(argc, argv,
"org.gtkmm.examples.base");
Gtk::Window window;
window.set_default_size(200, 200);
Glib::RefPtr<Gdk::Pixbuf> apixbuf;
std::chrono::system_clock::time_point pos[2];
pos[0] = std::chrono::system_clock::now();
apixbuf = Gdk::Pixbuf::create_from_file( "E:/2012-bb-jackal-1.jpg" );
pos[1] = std::chrono::system_clock::now();
std::cout << "Diff: " << ((pos[1] - pos[0]) / std::chrono::milliseconds(1)) << " ms" << std::endl;
return app->run(window);
}
and I have used some pics from wikipedia to test, and the larger images take a long time to load, around 2000 ms.
(ex: https://upload.wikimedia.org/wikipedia/commons/d/df/2012-bb-jackal-1.jpg)
The cairo library is from the binary distribution from gtk+ website(http://www.gtk.org/download/win32.php) and i have compiled cairomm with ./configure --disable-static, make, make install commands and no extra options.
The same program when i run on Ubuntu with default gtkmm installed it barely takes 100ms, so i can see an overall 20 times slowdown in windows, which i feel is too much.
Has anyone experienced this before or is there a known solution to this problem (or is it a bug)?
and these are the commands i used to compile
g++ -c -o2 --std=c++11 `pkg-config --cflags gtkmm-3.0` test.cpp -o
test.o
g++ -o2 --std=c++11 test.o `pkg-config --libs gtkmm-3.0` -o test.exe
and the gtkmm version in both ubuntu and windows are 3.6
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]